Can I still go swimming if my mucus plug is coming out?

Mi

Only some of my mucus plug has come out and I'm wondering if it's still safe to have sex or swim in a chlorinated pool. Swimming relaxes me and I still wanna have sex lol, but I'm wondering if I have a risk of infection?