Can a UTI cause period like cramps?

So I have a UTI and I haven't been taking medicine for it which is probably foolish of me, but before I even knew I had one like two months ago I got weird period like cramps. And now I'm getting them again. My period for May was 2 weeks late too.