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.
Allows the plant to reproduce.
Stem Leaves Roots
Flower Fruit Seed