Yeast infection & pregnancy

Can you still get pregnant when you have a yeast infection? I tried having sex with I was ovulating but then a couple days after I figured I had a yeast infection for like a month and didn't know I thought it was a UTI or something. But is it still possible