However, depending on the context, you could also say:
* "Is there a place for me to sleep there?"
* "Can I stay the night there?"
* "Do you have a spare bed/room?"
* "Would you mind if I slept over?"
The best way to phrase it depends on the situation and your relationship with the person you're asking.