Sprinkles do melt when baked inside a cake. They leave behind small, colorful specks of sweetness within the batter. However, since they are melted, the crunch of the sprinkles is gone. That is why I like adding sprinkles on top of cakes, cupcakes, and bars in addition to baking them inside the dessert.