It's unlikely a 2003 Dodge 2500 steering gearbox will directly interchange with a 1997 Dodge 2500. While they're both Dodge 2500s, there were significant changes to the chassis and steering systems between those model years. The mounting points, shaft splines, and even the overall design of the gearbox could be different.
You'd need to compare the part numbers of the gearboxes to be certain. Using a reliable parts catalog like those from NAPA, AutoZone, or a Dodge parts supplier with the VIN numbers of both trucks is the best way to verify compatibility. Even then, there might be subtle differences that prevent a direct swap.