This isn't true for most tree fruits, such as apples, which need to be propagated through grafting, or else their seeds will grow into a different variety. Peach trees, on the other hand ...
There is a smaller, smooth seed within the pit ... but attracting pollinators to your yard and garden always helps. Mulch your peach tree each spring with a natural mulch containing compost ...