Is this part of my mucus plug? (TMI)

Lily-Anne • Fighting PCOS. 2 losses.
I'm a FTM and have no idea what I'm looking for, but after having a day of excruciating lower back pain I decided a warm bath was in order. 
Whilst in there, this came out. 
The pictures don't show it but it was tinged pink, was very thick and elastic-like, and wasn't a liquid. It stayed solid the whole time. 
I'm now having period pains in my lower back. 
Does this look like part of my mucus plug? I'm 37+2. 
(I know I'm holding it but I was in the bath at the time. Sorry if this grosses anyone out.)