No, index funds can make long-term investments or short-term investments. Investors are generally advised to invest in index funds for a long time, because historically, the probability of long-term investment in index funds is higher, and index funds are more suitable for fixed investment.
Index funds take a specific index as the tracking target and buy all or part of the constituent stocks in the index in order to obtain the same income as the index. Index funds are relatively stable.