Yes! Exercise — particularly an upright activity like walking — can help you digest your food and also decrease your stress, both of which can help with heartburn.