No that won't work as there are changes to the DB tables between versions.
You would have to run the upgrades in order specified in the release notes. the list what minum version is to go to the next major release. So likely one or two for each major release.
So you could upgrade your existing install and then move the db when it matches the version on the new host.
But probably safer to install the existing verison on new host, move the DB and then upgrade. You'd avoid the risk that the new host did not like the DB