Hi,
Yes it's possible if you install a licence server and install the role Remote Desktop session host on the server 2022.
To add the Licence server on your Server 2022 via a GPO or local GPO:
rds-activate-license-server
install-activate-rds-licensing-role-windows-server
Please don't forget to mark helpful reply as answer