Can you machine wash leather shoes?

Following a friend's advice, I tried it. She said she just threw them in the washer in cold water and rinsed them in cold water also. Then, when they were washed, she put them out in the sun to dry. I tried it and it worked for me also. Shoes were still in tact as they should be.