Your roster must be set by the lock time, which is five minutes before the race’s posted start time.
Once the race begins, you may swap a driver with your garage pick until the start of the final stage. If the final stage begins early due to NASCAR’s new caution procedure, the garage will remain open until the lap on which the final stage was originally scheduled to begin.
More information: Official Rules