The NP231 is rare in a Grand Cherokee, Grand's usually have a NP242, NP247, or NP249. The only one I would even consider installing in a Wrangler is the NP242, the latter two are too problematic.
Having said all that, it's unlikely the input shafts are the same between the Grand and the Wrangler. You could however remove the input shaft from your TJ transfer case and install it in the Grand transfer case. Then you would have to look at adapting the driveshafts to the yokes on the Grand case and adapting the shifter linkage.
It's doable, but why?