If you're worried about eating raw flour in cookie dough, you can pasteurize your flour by baking it. Learn how to bake flour.