Yes, but the vast majority of the money is going to salaries. I'd even argue that there is absolutely no problem in funding even most of the "non essential" businesses. And to say that businesses were on thin ice by april is an understatement by the way: revenue disappeared overnight, lending froze almost overnight, liquidity became almost impossible to access. Even by early april half small businesses could not afford to pay rent, much less salaries. The financial system has never seen anything like what happened to march, I can't stress enough that almost
every single "pipe" that make up systems we all depend on was collapsing. Programs like these took aways tons of uncertainty and deep fears of a recovery that would take a very, very long time. Things got much better when government support boosted confidence and guaranteed that people will still have money to spend.
Now I've heard people argue that compensation for lost salaries should've been paid directly to the employees if they lost their jobs. But to put it mildly, recovery and return back to normal would have been extraordinarily harder if most of the non essential parts of the economy don't exist anymore.
The price of letting everything go bankrupt only to reopen from scratch later is enormous and would amount to incredible waste not only of money but also years of work. The 150k may have been way too much for a local pizzeria, but it's better to overshoot than to aim for much better money allocation and risk losing precious time. You have to keep in mind that not only do businesses have to pay back the loans (if the money didn't go to salaries) but also that we will have ample time to take a closer look at each individual claim and punish fraud retroactively. The process is already starting as we can see with the linked website.
At the end of the day, we just couldn't afford to have a better PPP program because no matter how much money we lose on fraud and waste, the alternative would have always been more expensive.