If you've been inactive for years due to a medical condition, injury, or pregnancy, you need to talk to your doctor first and establish what kind of exercises your body is able to handle. Nevertheless, you will have to start slow and avoid high-intensity training in the beginning.