padcar
Upgrading the underlying OS shouldn't be an issue as long as you be sure to keep the same requirements. "Requirements" meaning same webserver config, same php version and config, and same database version/config/data.
I will say that 1.12.x is very old and no longer supported. It is highly recommended that you upgrade to either v1.16.4 or v1.17.3 (preferred). The latest codebase supports PHP 8.0-8.1 (and very soon will support PHP 8.2).
Cheers.