Yes, investors in index funds are subject to capital gains tax and tax on dividends. When an index fund sells securities at a profit or distributes dividends, investors may be required to pay taxes on the gains and income earned.
The specific tax laws will depend where you live, so check your local jurisdiction for more information.