True. He did indeed modernize Europe in many ways.
Still, this came at the price of millions of war dead - French and non- French alike. France, Europe‘s most populous nation before Napoleon‘s time, never totally recovered its demographic and political supremacy, which it had held since the Thirty Years War.
That’s why Napoleon continues to fascinate. He is a giant, yet neither wholly saint or villain. He is a classic Greek tragic figure, achieving much, for good and evil, until defeated by hubris.