Found https://files.phpmyadmin.net:443/phpMyAdmin/5.2.0/phpMyAdmin-5.2.0-english.zip in cache ..
Checking PHP modules ..
Installing required PHP zip module ..
.. module was installed but cannot be loaded
Yes, it’s possible but not advised, as distro upgrades, especially in such a great range, most likely will cause issues (i.e. various changes to services configs).
If I had to do it, I would have spun up a clean Ubuntu 22.04 and just migrated all data from existing 16.04 to it.