In a perfect world… reality is different, however.
Plenty of companies take on debt to pay dividends, e.g. just before going public.