Yes, you'll need to make sure the sweet potatoes are cooked, mashed and cooled before adding to the cake batter. You can cook them in the microwave for about five minutes. Make sure to puncture them with a fork a few times before cooking.