index funds don't "make money", they simply track the index, so if the index goes up, the index fund goes up, dividends are a side issue.