However, a lot of what we nowadays call "yoga" winds up having the following 2 features.
1. A subset of physical exercises is taken from traditional Hatha yoga practice -- that is, from a practice invented by people who didn't even have the most basic anatomical concepts or knowledge.
2. The subset of anatomically ill-informed exercises is fit into an organized pattern but, again, not based on any appeal to anatomy. Rather, the pattern is organized with either one of two aims:
a) To appeal to distraction-addicted westerners so that profits from yoga classes are maximized.
b) To make putting together an attractive teacher training course easy so that profits from those are maximized.
That's not to say that "yoga" is all or even generally bad for you as a form of exercise. It might be bad, but it also might have many benefits despite its anatomically deficient and alarmingly mercenary pedigree. The extent to which any particular "yoga" practice is ultimately good or bad for you will, of course, depend upon what you're like and what it's like.
However, given the genesis of much of what gets called "yoga," if you are doing something that someone decided to call that, then its very likely that at least *some* of what you're doing is anatomically problematic.
The article linked to here discusses one of many such likely areas.