Sleeping baby and diapers

Okay this may sound dumb, but my baby boy has been passing gas a lot and he's asleep. I think he pooped in all honesty. Do I wait till he wakes up to change him? He's out like a light and I'm not sure what to do. Advice??