Uti and positive pregnancy test

Hi guys, so I went to the doctors office because I had a uti and found out I was pregnant. I went home and took another 2 test and they were big positives. Can a uti give false positives? I was reading that they could but idk. Thank you in advance.