It’s not legal to drive a car before it’s been registered or after the registration has expired.
Each state has its own penalties for those who drive an unregistered vehicle. Typically, these are steep fines. For example, the maximum fine for this offense in Maryland is $500.