There's no reason that topology won't work. Provided the Sophos XG has a route configured to know what to send down to the MX. That said, is there a purpose of placing the MX behind the XG?
If it's just for terminating Site-to-site VPN connections, you might be better off configuring it in VPN Concentrator mode.