Yeast infection & ovulating

Will it hurt if I had sex & I know I have yeast infection? I mean I know it will hurt me. But will it cause a worse infection?