It is not at all wrong. This is a loving gesture that makes a child feel better and shows you care. It is also a good distraction from the pain of the injury and can help calm a child. A 2 year old boy is still very much a baby and cannot be made a pansey. I do this with my kids and know many people that also do. And also, as a teacher I've seen many kids, boys and girls who feel better after a kiss to make their boo boo go away.
If you have further questions, let me know.
If my reply helps you, click accept to close this question.