Sure. But google does waste money if it brings them profit. It would be rather called an investment.
However the example of Google is extremely bad, because it can only be applied to very large tech companies who already have people developing for Linux.