my newborn is constipated

Maria
Im using iron pills but I been thinking can cause my baby is 4 weeks old she so constipated. I breastfeed her and then formula so I think she costipated cause I use iron pills.  so please comment below, I'm first time being mom and I'm worry.