Bad to leave bub in pooey nappy while their asleep?

Pearl

I’ll hear bub poop as he’s falling asleep and I don’t want to wake him is it bad to leave him until he wake up to change it ? Dint want him to get nappy rash