TMI... but is this okay?

I’m 39 weeks and every time I pee this happens. Is this my mucus plug or what? Should I be worried? I’ve also been having Bad

contractions all night but they aren’t constant.