I have done but generally won't anymore.
When I was a younger lad and having to be real careful about when I'd poop myself so that family wouldn't find out, one of the main times I had that I could be sure mum wouldn't walk in to my room while I was messy was late at night after I "should" in theory have been in bed asleep.
I knew from staying up later enough times that my mum would only poke her nose in my door after about 10:00 PM if my light was still on or I was clearly still awake (on a game/watching tv etc.) If my door was shut and no light coming through cracks and I was quiet she'd leave it. So I would wait until around this time before shutting it all off, opening a window, and pooping myself. Of course I wanted to enjoy this time so I wouldn't take it off quickly and often would still be awake and wearing it when I heard mum coming to bed, at that point I'd be afraid that if I start getting cleaned up she'd hear me making noise and come to check so I often found myself in bed going to sleep in a dirty nappy.
I've always woken up early so the next day I'd have to get straight up and get cleaned before she woke and started moving around, since this was mostly only done on a Friday or Saturday I had plenty of time cause she'd lie in for a bit.
Things were like this for quite a long time until my confidence grew enough for me to poop earlier in the day when everyone else was home.
These days however if I poop in a nappy I will usually be changed out of it within an hour, 2 at most. My skin has got a lot more sensitive in recent years so I can't stay in a dirty one for too long without risking a rash, there have been times where I'm up late and It's been around midnight when I poop and I just don't have the energy to get up and change so will sleep in it but I wake between 5 and 6 anyway so it's not that long a time and I usually have to be very careful with my skin after that for a few days in case of rashes. I'll also usually only do this if it is a very firm and quite dry lump since softer poops tend to cause more problems for me.