Absolutely.
Solve problem -> Less uncertainty -> Less anxiety
It seems to me that's exactly the positive feedback loop we are hooked on. And the more your are capable, the more you can be subject to it. Which is fine until you realize you will also suffer more from its inevitable reversal (stalled problem -> more uncertainty -> more anxiety). So you find a different but even harder problem to solve to get the high... Deep inside you're still insecure and hurt, but on the way you may build a digital payment processor, sell a lot of electric cars and start a space rocket company (but your mileage may vary).
Joke aside, there are elements of mental health that must not be overlooked when playing these games and working hard all days long ; but if it's what that make you cope with life, have fun and make a net impact on society, it's still a win.