Yes. Canned peaches will give your cupcakes a softer filling than fresh peaches. If you prefer the more intense tangy sweetness and burst of flavor for your cupcakes, it is suggested to really use the fresh peaches instead.