Alergic to laytex??

Lacoda
Me and my boyfriend are each other's firsts and I experienced a UTI for the first time after months of sex, but didn't know why. I wash normally. Use Vagasil and everything. Went to the doctor and got antibiotics and everything didn't go away immidiately but did get bareable. We realized that it had happened maybe after a month of using condoms. We thought it might be because of the condoms (which were laytex) and after we had stopped using the laytex condoms and just being natural without anything, I was perfecty fine and normal. We just recently used some non-laytex condoms roughly a week ago, and I feel perfectly fine. Am I alergic to laytex condoms?? How can you know because I don't trust the internet to answer my questions lol