NICU mommas

If you gave birth early and your baby had to stay in the NICU for a while after you were discharged to go home are you aloud to sleep at the hospital with your baby or do you have to go home and visit daily?