Only if they stop giving it back to their shareholders. Since they started their buyback program in 2012 Apple has 'returned' over $222 billion to shareholders [0]. Presently they are issuing debt to finance the buybacks & dividends. If they are not careful they may end up like IBM.
That debt is borrowed against offshore holdings that they plan to repatriate when the tax conditions are more favorable.
It's true that Apple has mountains of cash, but in all likelihood, a failing Apple-sized tech giant would end up acquired by an adjacent company (see Motorola or Yahoo or Sun Microsystems
) before they ran out of money.
Not really. If they decide to screw over the shareholders like that, they won't take it lying down. Cook will be out ASAP.