Yes, however, sweet potatoes have a slightly different cooking time, depending on the size and type of potatoes. Also be sure to cook them over a baking sheet as some varieties make ooze sugary liquid while cooking.