Bad stomach pain, 11 weeks and 5 day pregnant

Kylie.
I was very constipated, and was a very hard poo, which then turned really sloppy.. But anyways, my stomach hurt really bad for a while, until I finished.. Has anyone else had this, or is it cause for concern ?? :/