Eating cookie dough while pregnant?

This may be a really really dumb question but I'm CRAVING cookie dough!! I want to eat some so badly and I heard pregnant or not it's bad for you but I just read in my glow insights that's samonella can not directly harm the baby if you get it. Is it okay if I have just a little?