No, it's in the morning glory family.
Despite the name, sweet potatoes and potatoes aren't close relatives. The potato belongs to the nightshade family, with tomatoes and peppers. The sweet potato belongs to the morning glory family, Convolvulaceae, and its vines even have similar trumpet-shaped flowers.
They also grow differently. A potato is a tuber, a swollen underground stem. A sweet potato is a storage root.
Both come from the Americas. Sweet potatoes were domesticated in Central or South America and spread widely, even across the Pacific to Polynesia long before Europeans arrived.
Yams are a third, unrelated plant. True yams, common in West Africa and the Caribbean, have rough, bark-like skin and starchy flesh. In the United States, orange-fleshed sweet potatoes were marketed as "yams" starting in the 1930s to tell them apart from paler types, and the name stuck. US rules require that "yams" labels also say sweet potato.