Its possible but never recommended.
https://learn.microsoft.com/en-us/windows-server/upgrade/upgrade-overview#which-version-of-windows-server-should-i-upgrade-to
better option would be to export them to removeable, Clean install Server 2019, patch fully, add hyper-v role, import virtual machines.
--please don't forget to upvote
and if the reply is helpful--