Feeling like I’m going to pee

Is this a pregnancy thing I am 6 months and sometimes I have this sensation out of nowhere like I’m going to pee but then it goes away in like a second such a weird feeling