sore on tip of penis

My boyfriend has a sore on the tip of his penis, he also has pain when urinating. We thought it's from a uti, but do you get sores when you have a uti? It's right next to the opening. Has anyone elses boyfriends ever have that? Yes it's an actual sore on the outer part of the head (since the sore appeared no we are not doing anything sexual and I don't touch his penis)