No, a 2-axle vehicle doesn't automatically mean that it has 4-wheel drive. In fact, most passenger cars have only two axles.
So while 4WD is not automatically synonymous with a 2-axle vehicle, it's possible that a 2-axle truck or SUV could have 4WD if it needs extra traction.