Yes, it is possible. For a trackick tranny to fit, you are gonna likely have to cut and widen the tranny tunne (I did)l. A trackick has pretty much the same gearing as a samurai tranny, so you'd really just be wasting you time swapping in a trackick tranny.
Early samurais had a .795 fifth gear ratio. 88.5 and up samurai trannys had a .865 fifth gear ratio. So if you are looking to lower your RPMs at higher speeds, then keep the early tranny. The same 5th gear ratios are in trackick trannys too. So no gain to swap to a trackick trannys.
All samurai trannys are identical on the outside (as far as size and how they bolt up to the engine and crossmember). So you can use any year samurai tranny in any year samurai.