The main factor to understand in this is that one has to ensure that the right kind of warm up exercises are undertaken. This is necessary so that it does not cause any damage to the muscles. Along with that, giving the muscles the time to adjust to the strenuous exercises is important. The more the muscles are made to work, the better they will acclimatize and the pain will stop soon enough. If, however, there is a tear in the ligament or tendon, the pain will not subside and there will be redness and swelling as well. That is the time you contact a doctor.