Can this affect ovulation

Tabitha

So last week I started having syptoms of a UTI, but didn't go to the doctor till the end of the week when the symptoms got worse. The doctor gave me some pills to take to get rid of the UTI. Does having a UTI and taking the pills affect my ovulation, because I took an OPK and I couldn't even see my test line. Could having a UTI also affect me getting pregnant?