Indeed, there are some types that do not require us to think about removing muscle contractions as an essential objective in our daily lives. The best example is defence muscle contractions, which disappear when the brain interprets that there is no danger. On the other hand, those caused by dehydration only require rest and drinking water.
In any case, even if it is not absolutely necessary, it is always advisable to seek a solution as soon as possible, so that not only do we stop feeling pain, but we do so with the clear intention of preventing our muscle tissue from gradually suffering.