There is a but. You have to be able to operate the controls safely. So, it's illegal to be the driver involved in a road traffic incident as a result of not being able to operate the brakes effectively when driving barefoot or wearing impractical footwear.