If you have an indoor rabbit you can have it live in your room, be litter trained, and it'll likely hop on/off your bed during the night.
However, if it's just an outdoor rabbit you want to sleep with, no, they're gonna pee & poo.
Also my buns love the bed