If you have joint, neck, back or muscle issues, ask your instructor for modifications that will work better for you. If they're competent they'll help you get into a good pose that won't cause other problems later on. Think limping when you've got a sore or injured leg, it causes back and hip problems or problems in the other leg if you limp too much. The same thing can happen with a poor choice of a modified yoga pose.
Yoga has been a great help for me since I started. I used to just run, but doing yoga really helped with strengthening the core muscles and changing my posture (at work, while walking, etc.)
And to repeat what Jtsummers said, always do the exercics right, at your own level. Just like with any sport-like activity, you can injure yourself quite easily.