Yes, you can use a different type of flour, such as a gluten-free flour blend or whole wheat flour, as a substitute for all-purpose flour. However, be aware that the texture and flavor of the cake may be slightly different when using these alternatives.