4 weeks an 6 days bad cramps

I have been having really bad cramps an back Pains I found out that I was pregnant when i went to the doctor on Thursday I think I might have a uti the doctor who conformed my pregnancy that I had a little infection in my stole should I go the the ER