Sex after losing mucus plug

Lauren
Is it still safe to have sex if my mucus plug has come out? Somewhere I heard not to take baths to reduce risk of infection, so I wasn't sure.