Mucus plug question??

So the last 3 days I’ve been having strong contractions ended up in labor and delivery on day two for a stress test on baby, I’m 2cm and I am now having mucus that has blood in it I lost a good chunk earlier when going to pee and this is some that came out a little later could this be part of my bloody show? I’m 38 weeks