Yes, you can adapt this recipe for a cake. Adjust the baking time accordingly, and ensure the cake is fully baked by testing with a toothpick.