If your scrambler is a 4x4 and you got a 2x4 wiring harness, then no it will not work - if you have a 2x4 scrambler and the wiring harness is for a 4x4, it might be workable, but there will be a lot of unused wires.
2001 2x4 part number - both A and B versions
2001 4x4 part number 2460861 - both A and B versions
2002 2x4 part number 2460942 - both A and B versions
2002 4x4 part number 2460943 - both A and C versions (there was no B version in 02)
I don't have the wiring diagrams for either the 01 or 02 scrambler, but I know from the part numbers the harness was unique to the scrambler and not used on other models.
Based on the part numbers and the fact that the 01 parts are NLA, I think you might as well install it, figure out what the differences might be and make modifications as necessary to make it work.