Mucus plug?

This was just in the toilet after I peed, is this my mucus plug? Before this I went pee and I had what looked like slim on the toilet paper. Also getting sharp pains in my vagina.