Is it a good idea to buy index funds for a retirement plan?

Not trade/Financial savvy at all. I’d like to know if it would be a safe/smart plan to just buy index funds (vanguard/fidelity) and hold on to them for 30+ years and be hands off on them. I don’t have the interest or time to read expense reports and make frequent trades. Is this a good plan or are there other options to look into?