Yoga will help you develop strength and flexibility. It can be quite aerobic as well depending on the style and poses you do. Just going to a class once or twice a week won't get you in shape although you will notice benefits such as greater ease of movement as your flexibility develops.