Answer: No. It doesn't have to be something that make you famous.
Step-by-step explanation:
Legacy simply has to do with what we transmit to others or the mark or impact left by other people when they're no more.
Legacy is not about riches or wealth but about accomplishments and one's impact towards others. The story about the life of an individual reflects the legacy of such person.