Is sex safe?

Kaylah • Mommy to Kennedy, wife to TJ, Due August 2021
Is it safe to have sex once your mucus plug has fell out? I don't wanna risk infection but everyone keeps telling me to do it, since I'm dilated to an almost 4(and that was a week ago).