Hi,
The most likely is No, the version span is too large, SCOM 2012 R2 agents may not be fully compatible with SCOM 2022. Thoroughly test the agent's functionality in both SCOM 2012 R2 and SCOM 2022 environments to ensure there are no conflicts or issues.
Please note that multi-homing agents can introduce complexities and potential challenges, so it's crucial to thoroughly plan and test this migration strategy in a non-production environment before implementing it in your production environment.