TTC but have a UTI

Daisma
So I went to the doctor the other day and was told that I have a UTI but I took a preggy test too and she didn't mention it when she called back however my period still hasn't come . Could it be possible or could my period just be off wack because of the UTI. I kind of feel like this is a dumb question but my period hasn't been late since I missed it in April