I agree with this claim! To a certain extent this is opinionated but there are many studies to back this claim up. Besides the article you provided, the National Library of Medicine says that there is a "direct positive correlation between involvement in sport activities during childhood and mental fitness during adolescence", and "A significant association was reported between sport involvement during adolescence and lower depressive symptoms (F = 19.87, p < 0.001), lower perceived stress (F = 14.74, p < 0.001), and higher self-rated mental health (F = 14.65, p < 0.001) in early adulthood [4]." Sports are a great way to release endorphins, be social, and work the body in a healthy way.
Link: https://pmc.ncbi.nlm.nih.gov/articles/PMC8656946/