Sprinkles should be put on cookies before baking. By pressing them into the cookie dough prior to baking, the sprinkles become embedded in the cookie and create a colorful and fun appearance.