Answer: Ideally consult your doctor before you begin any exercise program.
A few tips: Start slowly and gradually increase your efforts as you gain strength, flexibility, and confidence. Move at your own pace. Never try to keep up with a class or a group if doing so is painful. Accept that you will be able to do more on some days than others. Be patient with your progress. Overexertion makes pain worse and can strain muscles.