No, it's not illegal as there is no law written against it. However, it is highly recommended to drive with two hands on the wheel for proper control of the vehicle, especially during sudden or unexpected situations or emergencies.