It depends on the nature and cause of the pain. In general, it's best to consult a doctor before starting any exercises or stretches, as they can help determine the underlying cause and provide advice on what types of stretches are appropriate.