Yes, you can drive a car in socks without any problems. The most important thing when you're on the road is that you don't endanger anyone. Therefore, you should always drive with mutual consideration.
In the 1990s, a man named Jason Heimbaugh wrote to each of the 50 states' departments of motor vehicles to make sure of it.