Eating raw cookie dough can be bad and put you at risk of developing Salmonella poisoning which can make you really sick.
However the raw cookie dough is very unlikely to have any salmonella in it but there's still the chance.
I have eaten raw cookie dough since I was 2 years old and I'm nearing 40 years old now and still eat raw cookie dough when I'm making cookies.
I also love to add some raw cookie dough to some ice cream as well.
There's an ice cream shop that sells cookie dough ice cream that contains raw cookie dough and I started making my own because I loved it.
So while you can get sick potentially from eating raw cookie dough the risk is pretty small.