Can constipation hurt the baby?

I am twelve weeks pregnant and have been severely constipated and haven't had a bowel movement in a week until last night and it was a lot, and it hurt pretty bad, and today my abdomen is sore and my sides could this hurt the baby please help