For sure. But then you need somebody with vision, that will spend extra money on research so that these kinds of bugs don't happen. Then a new "smart" CEO comes and slashes budgets. Everybody is happy, they have the same sales but lower costs. Then, after years, the bugs are found. Now it's too late. You have to allocate money to mitigate and on top of that you have to spend more money on research and then spend a little on bug bounties. It's too late to go back now.
The problem is how do you recognize a truly good CEO vs. a CEO that lowers costs and makes everybody happy.