Can constipation cause contractions?

I'm 18 weeks and last night I was awake all night thinking I had to poop, I'm scared to push so I waited for it to ..ehem ...surface on its own, it finally did. Now Im still really uncomfortable and it feels like... There is something in there, is it possible my constipation caused contractions or vice versa?