It would be an effort.
4.0l never had a distributor, early engines had the EDIS-6 module which can run as a standalone system.
You will need to feed the signal from the EDIS-6 to the '87 PCM for injector timing, it normally got that from the sensor in the distributor.
And the '87 was a batch fire injection system, so 3 injectors open at the same time, and they just alternate, so timing of injectors isn't that critical, but without a timing pulse they won't open at all.
Going thru the list of sensors the '87 PCM would use seems OK, nothing jumps out at me.
MAP only system does need the Air Temp sensor, you may need to add that to the 4.0l, MAF combines the two.
I am just guess but the 4.0l injectors should add the correct fuel mix with the pulse from the '87 PCM.
I am assuming the 4.0l injectors are larger than the 2.9l injectors.