You should NOT wear shoes when doing yoga. Having bare feet when you practice will help you to have proper balance and stability. However, since maintaining a comfortable temperature is also important, you can wear socks if the floor surface is cold.
All is well - Small Ideas Big Change