Mucus plug? Question no picture

So I’m in the hospital right now. I’m doctor sent me after my normal check up at 11 this monrong. I’m 3 cm dilated with a bulging bag. Just wonky contractions that are strong and regular then get crazy again. I went to the bathroom 30 mins ago and a dime size amount of mucus came out that was brownish pink. Is that the mucus plug? What can that mean