It can, but it’s not a replacement for therapy and other remedies for depression. Exercise of any kind releases endorphins, feel-good hormones that give people a mood boost. However, someone who has depression should also talk to a doctor and get appropriate treatment.