It will work both are gen4 engines.
However the Maf and map are pinned differently so figure that out or use those components from the 2008 engine.
You will want the ECM lightly tuned also to address the codes.
Later 4.8's had afm/dod as well. If the new engine has it no problem either. It'll run.