I can only speak for myself.
For years I played soccer, hoops, ran, lifted etc., was tight as a drum and was constantly pulling muscles (hammies, quads, calves, groin - you name it). As a last resort out of desperation tried yoga probably about 15-16 years ago.
Game changer.
As I approach 60 (turn 60 this year) have retired from hoops and soccer but still do MMA (Muay Thai and Dutch Kickboxing) typically training with high school, college or kids in their mid-twenties.
Doing yoga is a must as, if I don't do it religiously, that is when I tend to get hurt.
I do my own routines, typically 90 minutes, holding each pose for a minute.
But I also do Yin and Hatha in classes and do both hot and room temperature.
I also have one of those wood triangles and I stretch my achillies and lower calf Every.Single.Day.
I also do a full stretching routine, outside of yoga, every single day focusing on hammies, calves, groin, quands, IT band, hip flexors, lower back etc.
It has definitely helped me immensely.