Many companies spend years spending much more money than they make building themselves up, or simply surviving during a downturn.
This is in fact the whole idea of investing in a startup - that they will have more money to spend than they make.
Amazon spent most of its existence spending nearly as much or more money than it made and it is something like the 4th most valuable company in the world.