Mucus plug at 16 weeks?

Lex

I am 16 weeks and a few days pregnant. I have had subchorionic hematomas and have had bleeding during this pregnancy because of it. However, haven’t had any discharge. My husband and I did have sex for the first time in awhile yesterday because I had the clear from my doc. Could this be from sex, discharge, or mucus plug? Thank you!