Chances are they're the same. Chrysler has always been famous for making parts that interchange from year to year. GM is famous for just the opposite. There's way too many part numbers to look at. There can be a dozen different part numbers for each engine size for each year. Each number represents a change, improvement, modification, or update, but they can all interchange.
One thing you can do is look at the "pin-out" diagram in the service manuals for both years to see if they're the same. Another trick is to look at the wire colors for the connectors on both trucks. Chrysler likes to stick with the same colors for the same circuits on different years and models. If the colors and blank pins are the same on both vehicles, the computers are likely the same.
Be aware that Chrysler had extremely little trouble with their Engine Computers. What problem are you trying to solve?
These computers can be flashed with updated software so the newer computer might be the same but it can have software that isn't compatible with an older engine. Normally you can't install an older version of software than what's already in there.