Exercise can serve the purpose of relieving stress.
Tips
usage
起到 is almost always paired with 作用 (zuòyòng, role/effect) or 效果 (xiàoguǒ, result). The pattern is: 起到...作用/效果 (to play a ... role / achieve a ... effect). Don't use 起到 alone without specifying what role or effect.