UTI and early period.

I’ve been sick... on day four of being sick I woke up with a UTI... two days later I started my period... five days early. Or at least I think it’s my period. Hard to tell if the cramps and bleeding are from UTI or period.

Is there any correlation of these events? I’m on antibiotics. Could antibiotics cause my period to start early?