UTI or pregnant??

I always psych myself out on these things. I had a minor UTI last week and I'm still getting over it. But when stuff like this happens I always worry that I'm pregnant, even when there is no possible way. My boyfriend and I use condoms every time we have sex, and he even pulls out before he finishes. My stomach has been feeling a little strange, but I think that's from the UTI.. do y'all think I could preg?? My next period is expected to come October 17.