An in-place upgrade is supported but never recommended, better option is to clean install, patch fully, migrate roles or applications over.
https://learn.microsoft.com/en-us/windows-server/upgrade/upgrade-overview#which-version-of-windows-server-should-i-upgrade-to
--please don't forget to upvote and Accept as answer if the reply is helpful--