Of course! Sweet potatoes are moist, so letting the moisture evenly distribute throughout the cake overnight improves the flavor and texture.