This did happen once. 3 people were laid off, I think directly based on things I said to drive the completion of some automation. That was the last time I ever measured something in man-hours to make a point. I’ll never do it again. That was over 12 years ago.
If anything software engineers have spawned in uncountable numbers of jobs that never would've existed before, is what my intuition tells me.