It would be amusing in a horror sort of way, but no they wouldn't be allowed to leave.
Try it and the California national guard is nationalized, the entire California government is arrested and tried for insurrection, California is put under martial law, and the state is crushed.
We already...