I suggest to move to Server 2022 directly for longer support.
Generally you go top-down.
E.g. Upgrade CAS, then the primaries. All in all you really need to make sure that no hostnames (FQDN) change of any kind. Including the SQL Database server. Also make sure to reapply the correct permission to SQL again.