Constipated? (TMI)

My one month old baby (formula fed) went 2 days without pooping then had 2 poop diapers with semi-hard poop that was green and a little yellow. Could he have been constipated? Today he had another green/yellow poop diaper then after that had the normal yellow-seedy poop.