yes , but you normally will have
10 days to pack your belongings and leave the country.If you can find another job and let them to change the status(H1 J1 O-1 L1 etc) during 10 days, you are fine.If your spouse has a valid visa, change your status as his/her dependant.
Good luck!