I'm not 100% sure so I don't want to mess you up with misinformation. My YJ has an XJ motor and trans and ended up needing a Painless harness to make it all work together. If no one on here has the answer follow this link and call these guys tomorrow.
Ask for Josh. He's the shop owner and quite the Jeep guru. He did the swap in my YJ for the previous owner. I've talked to him quite a few times and he's a great guy. I'm sure he can quickly answer your question and then some.
Hope that helps.