If you shutdown the old prometheus you can just copy its storage directory to the new one, to keep your existing metric history.
It would be a good idea to upgrade to 2.37.1 since the 2.37.x branch is a long term support release (at least 6 months from July 2022).