Depends. There's a decent amount of evidence that exercise can help reduce episodes of depression, even clinical depression. If obtaining X is obtaining a healthier body, then there's a decent chance you can help to lift yourself out of a funk by getting it. However, there's comfort in believing that something can't be helped, so I won't blame you if you don't believe me.