Absolutely not. No-one ever expected the Maginot line to hold more than a few weeks.
It's goal was two-fold:
- Delay the invasion by a few weeks to give time for mobilization.
- Force Germany to go through Belgium again to ensure the involvement of the United Kingdom which was guaranteeing Belguim.
And both goals were achieved.> Another failure was that the massive gun turrets periodically embedded in the fortification were designed so that they couldn’t be rotated to point back toward France
That's absolutely not a failure, it's a lesson learned from WWI: https://en.wikipedia.org/wiki/Fort_Douaumont
Central planning is the only way inter-nation wars make sense; bellum omnium contra omnes is just chaos. Bureaucracy (aka division of power, aka decision by consensus/committee) is the real problem. It becomes a turf war or a “not my responsibility” issue.
Edit: The push through the Ardennes was a gamble even the German army, and its Generals, were surprised to actually work.