An infection?

A couple weeks ago I had this painful having to pee feeling ALL the time and it was so uncomfortable but it went away during my period, but now my pee is cloudy and sometimes smelly, nothing in my diet has changed and I've tried drinking more water but no change, does it sound like an infection??