No, they did not. The Germans did not truly defeat the Maginot Line. The main parts of the Maginot Line only fell because France surrendered and ordered its soldiers out of the line.
The Germans succeeded in their invasion of France because they went around the Maginot Line. France built the Maginot Line along its border with Germany (and to some extent with Italy). It did not build along its border with Belgium. But the Germans did not invade along their border with France. Instead, they came through Belgium. Once they made it through Belgium, they were around the Maginot Line and the line had no further significance.
The German invasion, then, succeeded because it was able to move rapidly through Belgium, thus flanking the Maginot Line and making it irrelevant.