It depends on several things:
Is there a centre differential? If so then you get no drive to the rear unless it is a limited slip diff.
Can the rear drive train take the torque loading? Seen people do the same thing and snap the rear half-shafts due to sudden high torque - when in 4x4 and hubs are locked all four shafts share the loading.
Having said ...