Yes, absolutely. You can roast the whole hazelnuts the same way (180°C fan, 8-9 minutes). However, I recommend you remove the dark skin before you add the hazelnuts into the cookie dough as the skin is quite bitter. The easiest way to remove the skin is to rub the hazelnuts in a dry tea towel - if the nuts have been roasted properly the skins should fall off easily.