Mucus plug and baths

Is it still safe to take a bath after losing your mucus plug? I’ve heard it could cause infection?