Most guys are into having their hair played with, tugged on, head scratched, etc! Depending on the circumstances it can be a turn on or something relaxing/soothing.
Honestly, both men and woman love having their hair played with. You can’t go wrong.
(Unless you’re messing up someone’s hair that they just spent 30 minutes trying to perfect…)