I'm a man. When I was younger I was quite often told by strangers at bus stops or just walking around town etc. to smile more, lighten up, "What's bothering you?", "Cheer up, it might never happen" and so on. Now I'm old, not so much.
I suppose I do have a kind of bedraggled expression most of the time. It did mildly annoy me when strangers didn't realise how happy I was, behind it so to speak. But not really a big deal.
I suspect women have a harder time and it can be an aspect of male entitlement and/or misogyny motivating such comments to them. I can see how you might be more annoyed if you're female. But the answer to OP's question is, "Yes."