Yes, refrigerating cookie dough gives the best texture to the cookies after baking. Chilling gives the dough a chance for the sugar to melt into the dough. And also to avoid the cookies from spreading while baking.