UTI or pregnancy

Morgan
I have been having to use the restroom a lot to go pee. And it sometimes burns. I've had this UTI since Sunday night. The pain has come and gone too. I was wondering if a UTI can be a symptom or cause of pregnancy.  It feels like I'm pregnant because I've used the restroom like every 5-10 minutes but I know UTI's make you go pee that often too. So I'm not sure.