To be sure:
* Identify the transmission type: Find the transmission identification number on the transmission case itself. This is crucial. The same *type* of transmission (e.g., 46RH) from both years should be compatible, but there might be internal differences.
* Engine compatibility: The transmission must be compatible with the engine in your 1994 truck. A transmission from a V6 won't fit a V8, and vice-versa.
* Check the bellhousing: The bellhousing (the part that bolts the transmission to the engine) must match. While likely similar, slight differences between years *could* exist.
* Wiring harness: The wiring harnesses for the transmission may differ slightly. You may need to adapt or replace some wiring.
In short: While a direct swap is *probable*, you absolutely need to verify the transmission type and engine compatibility before proceeding. A qualified mechanic specializing in Dodge trucks is your best resource to confirm compatibility and avoid potential problems. Simply relying on the year being close is insufficient.