Why would it not be possible if you get the same exact engine, and the correct tools to do it. I've never done anything like that but my guess is that it will be a plug and play if you are using the same engine.
2008 Lexus IS250 Obsidian GONE
2015 Lexus GX460 SFP CURRENT
2006 Toyota Prius White CURRENT