Yes, the fruit of a plant carries and protects the seed. In this papaya (right), the part of the fruit we eat protects the seeds.
Flower Fruit Seed