Mutual Fund Investment strategy when market is at all time high

What are Index funds and should you invest in them?