Has anyone ever gotten a vaginal infection and then found out they're pregnant?

I've had this terrible UTI or just a curable vaginal infection and then I just found out I'm pregnant, has anyone else had that before? Did the pregnancy stir this up bc I'm generally really clean?