Is touching his hair a form of flirting

Of course it is becuz one time I did it an he looked at me all flirty I was like wat I just wanted to touch it cuz it looks so soft so den he touch my hair so of course it is flirting