Breast milk and constipation

Queen

Can breast milk make baby constipated?? My baby didn’t poop for two weeks. Had to formula feed for 24 hours because I had surgery and he pooped twice. Back to breast feeding and he hasn’t pooped since. It has been almost a week since I switched back to breast feeding. What can I do to help? I’ve given warm baths but it hasn’t helped.