*If you're impatient it wouldn't hurt to immediately bake it — it might just spread out more than a refrigerated dough, so give yourself extra spacing on your cookie sheet. However, letting the dough rest will give it some structure and allow the proteins to bind and the sugars to dissolve into the dough.
Adapted from Sally's Baking Addiction