Can a UTI medication mess up your period?

Alysa
I had a UTI infection a week ago and I'm supposed to get my period soon.