Can you leave the hospital without your baby having a name?

I'm watching a show and they have been home for like a week and their baby still doesn't have a name. Can you actually do that?