Yes, you can. Depending on your dietary needs, you can substitute all-purpose flour with other types of flour like whole wheat flour, chickpea flour, or gluten-free flour. However, keep in mind that the texture and taste may slightly vary depending on the flour used.