While yams and sweet potatoes are not the same vegetable, they can often be used interchangeably in most recipes. Sweet potatoes are native to North America and yams are native to Asia and Africa.