Axle shaft broke 8 3/4

So it doesn't matter that my spare axle shaft was on the passenger side of another 8 3/4, I can just remove the bearing and the adjuster nut and put a new bearing on it and put it in on the drivers side?