For this recipe, you should add the jam before baking the cookies. If you happen to forget, you can add it immediately after, you might just need to press the thumbprint indents back down while they are still warm. I use the back of a measuring spoon for this.