Do contractions make you poop/have gas?

I’ve been having mild period cramps on and off all day, and then some pretty painful contractions in between. (Still irregular)

But everytime I have a contraction I’m either passing gas or having to run to the bathroom to pass loose stool?

Obviously I’m not in active labor, but i think I might be in early labor. Is anyone else experiencing this?