Yet humans can handle and untangle spaghetti code without requiring fusion power plants. There is no fundamental reason why LLM would fail to do it too. And as they improve the code they produce is better architected. So the situation is improving at both ends.