It's not recommended, as raw cookie dough can contain harmful bacteria. Baking the dough is the safer option.