You can do either! I like to add sprinkles to the icing because it is so simple to drop them over the cookies after they are frosted. But you can also roll the dough in sprinkles before baking.