Yes, you can substitute the all-purpose flour with almond flour, coconut flour, or another gluten-free flour. Keep in mind that the texture and flavor may differ slightly. I have the best luck using a 1:1 gluten free flour for this recipe.