I think I lost my mucus plug..

Im 12 weeks pregnant and I think I lost my mucus plug. After I wiped there was globs of yellowish-clear jelly like discharge.

Is that my mucus plug ? Does that mean I'll have a miscarriage?

I've also been having period like cramps for the past 3 days, idk if that's relevant..