Yes, you can use only egg whites for a cake. When doing so, substitute two egg whites for one whole egg. Depending on the cake, you may need to tinker with the recipe to ensure the cake remains soft and moist. For instance, you can add sugar or vegetable oil to maintain the same texture and use Greek yogurt or buttermilk to mimic egg yolks in baking.