It is possible to substitute oat flour for all purpose flour, however it needs to be done by weight, not a simple measurement. Additionally, oat flour is naturally gluten free so it will have an effect on the end result. It is best to find specific oat flour cookie recipes like this one!