Yes, that is a condition in NASA's contract with SpaceX. It is currently scheduled for 2025.
With both Crew Dragon and Starship, there will have been _many_ successful missions involving un-crewed variants of the spacecraft (Falcon 9 and Cargo Dragon were both well-proven systems before crew was a possibility).