Of course.

If I wanted a dog that couldn't sleep with me so easily, I would've gotten a Boxer.

Ellie is a lap dog and she is free to spend as much time on our laps or on our pillows as she wants.
From the training aspect, I do agree that not all dogs can behave if they are allowed to sleep with their owner but we just overlook it.