Can you get uti from the pill??

I’ve been getting utis a lot recently I use protection and always pee before and after sex I have thought a lot about how I get them could it be from the pill? I’ve been on it for 4 months now I think , it’s so annoying and I hate getting them