The headscarf is not traditionally a head-covering worn by men
Whilst a headscarf is not traditional, the same piece of fabric can be turned into turbans, shemagh and bandanas which are styles of head coverings worn by men.
Maybe the only difference between a headscarf worn by women or men is the name, maybe the fabric might be more patterned for women, the knots different, but gender stereotypes are gradually disappearing, so worn today it does not really matter.
I think it looks smart, would certainly make use of it as emergency sun protection.