Exercise is great, just make sure to take sometime to evaluate where you are at mentally. I was running about 40 miles and doing 5 hours of lifting per week to try and stay a head of my depression, and when I finally burnt out everything came crashing down all at once.
Exercise is great for addressing feelings related to being physically inactive. It won’t address other mental health issues, such as learning to control your emotions & fostering healthy relationships.