In California, the short answer is no. You can drive barefoot so
long as it is safe for you to do so.
The rule of thumb, however, is that you are supposed to be
consistent. If you like to drive barefoot, then do so all the time.
If you usually drive with shoes, wear the shoes.