Yes, this recipe will work for yams instead of sweet potatoes. Make sure they are cut in the same manner and size. This will ensure they cook at the same time and temperature.