Hard to digest
Many people advocate eating "raw foods" as they believe it has more enzymes & nutrients, but some foods are difficult to digest when raw and wheat is one of them. Most vegan cookie dough has wheat.
When was the last time you ate raw flour?
The answer depends on your definition of "safe." it probably won't make you violently ill but I do not recommend it (except for maybe a tiny taste).