Computer replacement

I have a 95 Plymouth Acclaim. The engine came out of a 94 Acclaim. If I install a computer that came out of a 94 Dodge Spirit, will it work?

Ask at a scrapyard if this will work. They should know as they want to sell engines to wherever possible.