My cat is around 2 yrs.old and almost the perfect cat...

If she didn't shed she would be perfect! yesterday and today I have found her peeing in a dog bed and two other places, which she NEVER does. It's like she was straining to go. Is this a sign of a urinary tract infection? If anyone has dealt with something like this, please throw in your two cents.
Thanks