Can I have sex after my mucus plug comes out?

I’m 39 weeks today & had some bloody show last night but I’m still pregnant. 😏

Been having mild contractions on/off all day & losing more mucus plug but it hasn’t been bloody today.

Hoping one last dick appointment will get things moving along 🤪 Just didn’t know if it was a good idea since I’ve been losing huge globs of mucus plug.