Yes, this recipe can be adapted for a cake. You may need to adjust the baking time based on the size and type of your cake pan.