Generally, the running surface of the treadmill is cushioned. Hence, it does not matter whether one is wearing a shoe or working out barefoot.
However, we recommend wearing proper running shoes to get hold of the proper grip. Avoid wearing slippers and sandals.