Any form of physical exercise comes with risk, particularly if you're injured or recovering from an injury. Nevertheless, yoga is much easier on the body than high impact exercises, and poses can be modified to suit different skill levels. When in doubt, talk to your doctor if you have any concerns, and always let your yoga teacher know if you're dealing with any injuries.
Disclaimer: This article contains information on health and wellness and is not a substitute for medical or psychological advice from a qualified doctor and/or specialist.