Exercise depends on the severity and the cause of the leg pain. If there is no severe underlying condition, you can exercise.