That's what I have done in the past. Just be careful and go a little at a time, alternating front to back so to prevent getting the wheels askew.
In my experience, it's even more awkward trying to press them closer together.
For tender/pilot/trailing truck axles, I'll remove the from the truck if I can, and then press from the INSIDE. Most screw drivers won't span the gap between the backs of the wheels, so I will lightly grip the axle between the wheels with a pair of pliers (parallel jaws are best, not tapered needle noses) with the pliers against the back of one wheel, and then use a small screwdriver wedged between the pliers and the other wheel. Slightly twisting the screwdriver will wedge the wheel out. Again, go slow and careful!
In my experience, it's even more awkward trying to press them closer together.
For tender/pilot/trailing truck axles, I'll remove the from the truck if I can, and then press from the INSIDE. Most screw drivers won't span the gap between the backs of the wheels, so I will lightly grip the axle between the wheels with a pair of pliers (parallel jaws are best, not tapered needle noses) with the pliers against the back of one wheel, and then use a small screwdriver wedged between the pliers and the other wheel. Slightly twisting the screwdriver will wedge the wheel out. Again, go slow and careful!