Assuming output is the same in both cases, this is wrong. If a company is making $10 million in profits, is it better for society if they spend $9 million hiring people to dig ditches and then fill them in? No, because those people could be doing something else that is actually useful.