It is possible in MATLAB 2024_b.
Given two axes ax1 and ax2, you can simply do
linkprop([ax1.YAxis,ax2.XAxis],'Limits')