39+5 can you have sex after losing plug?

Kelly • 💙 24/11/2016 ❤️ 28/08/18
I lost my mucus plug yesterday, just wondering if it's safe to have sex after losing it? 
Is there a risk of infection?