Based on my cursory research, the short answer is yes. However, it would be prudent to open a case with product support as there is likely some nuance.
https://learn.microsoft.com/en-us/sql/connect/jdbc/understanding-xa-transactions?view=sql-server-ver17