Yes it led to some degree of tech debt, but it also made it easier to experiment, validate, and identify good and bad workflows.
At least in my network, we don't think AI will replace all workers and we strongly believe AI will lead to a significant amount of tech debt, but we do also recognize a lot of work in tech today is busywork and will be automated away in the hands of actual engineers with domain expertise.