question

My husband and I had sex, and I noticed afterwards something like a clump of brownish yellowish something. I'm 35 weeks and I was just wondering if it could have been my mucus plug. I am also 1 centimeters dialted, and have contractions every now and then. We asked the doctor if it was okay to still do intercourse even though I was having contractions and they said it was fine. If it was my mucus plug could it regenerate?