probably, your body would be making more white blood cells to combat the infection, could also be keeping water to prevent the UTI from getting into your kidney's.
I have noticed when I eat sugar and carbs, because bacteria like the sugary stuff, UTI's show up more often.
Vit C, cranberry pill, lots of water can help prevent.
D-Mannose from a health food store can flush the ecoli (usual cause).
Then there is always the Dr.
After antibiotics,(if you take them) please take a pro biotic to get the good flora back in your system, or your weight loss may stall.