I started exercising and it gave me a huge confidence boost that further lead to being attracted by girls. After a year though I got used to lifting weights and I wasn't progressing as I wanted to be so that didn't help. But I am sure if you get shredded you will be cured.
There are truly a lot of reasons why exercise contributes to good mental health. One of them is that it helps produce the correct balance of hormones in your system, which in turn also impact the correct balance of neurotransmitters. It's very easy, especially for us coders, to forget that we're sitting all day. Sitting all day is far from natural and has a tremendous amount of health impact. Exercise is extremely beneficial.