Furthermore, there might be differences in accessories, mounting points, and other components that would require modifications or custom fabrication. While the engines are both 5.7L, internal differences are possible, affecting things like the intake manifold and other peripherals.
In short: It's *possible* with significant modification and likely considerable expense, but not a straightforward swap. You'd need mechanical expertise and potentially a professional to make it work.