Do you HAVE to stay the night at the hospital?

I live in New York State, and I absolutely hate hospitals, I also have a terribly hard time sleeping anywhere other than my own bed, and sleep is essential for me because I have epilepsy... Typically no sleep=seizure. Soo trying to avoid that,
More stressed about my hospital stay than I am about labor and delivery! I'm hoping to have a completely Unmedicated birth (God willing) and if that happens I'm just curious do I HAVE to spend the night there? Or can I leave after a few hours? I have lots of help from family in my home with the baby fr the first few
Months at least with night time feedings... I just really don't want to spend the night there because I know that no matter how exhausted I am, I'll be too anxious and will not be able to sleep there:(