This is a really common misconception. In most cultures, even in the past, people didn't marry and have kids until their late teens or twenties.
If we're talking specifically about medieval europe, the nobility might get betrothed at a young age, but they still typically waited before...