Sure. If nothing else, it establishes a proof so others can try to reduce it or come at the problem from different directions, looking for simpler approaches.
But does it matter? Would the Pythagorean theorem be less useful if it took a million lines of lean to prove?
Alternative question (I guess for EEs): could machines be built to run lean without the Pythagorean theorem?