If you know your baby pooped and they still have the entire night ahead of them, it's best to change their diaper, rather than leave things overnight. If they are simply taking a nap and they should wake up shortly, let them get some rest! It would have woken them up if it was bothering them.