Yes, Sauron was originally an elf, specifically a Maia, which is a divine spirit that came to Middle-earth to help the elves. Sauron was originally named Mairon, and he was a servant of the Vala Aule. However, he was corrupted by his desire for power and turned against his master, becoming the evil being known as Sauron.