As Ten said, only if one or other is docked into the other one etc. You could potentially do it in the atmosphere layer if both ships are there, and the vehicle has flight-grade repulsorlifts. Then you can just undock the vehicle and redock in the other ship.
Otherise, no way to transfer vehicles while not on the ground.