uti??????

I've been peeing a lot more often the past 2 days and when I do I'm in a lot of pain. when I wiped today there was blood but I know it can't be from my period cause I just finished it and I've been taking my pills everyday at the same time could this be a uti?