Yes, chilling the dough helps the cookies hold their shape and give the gluten a chance to form. Also, if the dough is too warm, the butter can melt too quickly during baking resulting in an uneven texture.