Yes, each year the general meeting of the company’s shareholders will decide what to do: pay a dividend or reinvest the profit to increase the company’s value. In both cases, you win.