It probably won't hurt you. But you're likely to stink up your bedroom and it will probably feel awful to sleep in a poopy diaper.
Most babies hate being in a poopy diaper and will wake you up at night to change them.
Especially in that case if it's a real baby who has a poopy diaper then it should be changed during the night because a babies skin is sensitive and is likely to get a rash.
You as an adult might get a rash from it too so I wouldn't advise sleeping in a poop filled diaper if you don't have too.
But it's your choice anyhow. Whatever floats your boat.