The idea that characters, figures, and events of myth and folklore are rooted in people and things that occurred way way back in history is called euhemerism, named for the philosopher Euhemerus of 4th century BCE Greece. Is it correct? Well, I'll let others speak to that: