Wheel stud replacement with axle shaft still in place, possible?

The remains of the old wheel stud came out easily, just tapped it with the hammer. Then I used washers and a wheel nut to press the new stud in place. Did not need to pull the axle. Thanks to all who chimed in on this!
Best regards
Robert