Do UTIs cause pelvic pain

When I went to the doctor I was told I had a uti and that I’m pregnant but my doctor didn’t give me anything for it