Really worried! Help please

I've been a little constipated. Last time I pooped was day before yesterday. And just been sat on the loo trying to see if I can poop. And just got really bad cramps. Is this because of constipation or something to do with baby?