Diaper change at night?

My baby is 5 months and sleeping a good 4-5 hours before waking at night and eating but I don’t change his diaper until morning unless he poops then I will change it, is this right or should I be changing it like I was when he was a newborn which was at every feeding?