UTI causing contractions?

Chelsea

I was having contractions today (28 weeks) so I went to the doctor. They did an NST and picked up small contractions but I also had blood in my urine meaning I have a UTI. The UTI may or may not be what is causing the contractions. Has anyone has a UTI cause contractions and after it cleared up they went away?