This depends on the recipe you’re using. If you’re filling them with something like jam or preserves, you will usually add this before baking. However, with these iced thumbprint cookies, the frosting is added to them after they have baked and fully cooled.