Yes, of course. Flour is perfectly fine for dogs to consume. Even though grain-free diets are increasingly popular, it's only high-processed flour that doesn't come from whole grains that aren't great for your canine friend. High-quality flours made from whole grains such as wheat and oats are very beneficial to dogs.
Many people are trying to stay completely grain-free, and there are lots of very healthy flours that are made from coconut and almonds. Even though these alternative flours aren't made with whole grains, they provide many of the same benefits as whole grain flours.