Mucus plug??

Christina • 33 years old and expecting my first.
I am 30 weeks today and just now I went to the bathroom and I think part of my mucus plug came out. It wasn't a lot but it was gelatin like with light blood mixed in. I haven't had any contractions or other signs of labor as of yet, I'm just worried I'll go into premature labor. My question is can I lose pieces of it and still carry to term?