Is constipation a pregnancy symptom?

I have pretty bad IBS and it usually makes me go to the toilet a few times a day but recently I’ve been the complete opposite, sometimes having a couple days without going at all!!

Even when I’m having a ton of fibre in my diet, it’s not changing.

Just curious if this is a pregnancy symptom?