The other problem is that the investment choices in the 401k are extraordinarily limited. You get your choice of - two index funds that track the S&P and R2K, two "actively managed large / small company funds" that really just track the S&P and R2K but with higher fees. You can choose from 10 different target date funds with high fees and low returns. You can choose the company's own stock, if you did not learn the lesson of ENRON. There are also a few "international company funds" and "bond market index funds" and similar that consistently under perform all the other choices.
There's no way to invest in individual stocks other than the employer's stock, sector targeted mutual funds, REITs, SPACs, actual real estate, annuities, non-US companies, precious metals, or numerous other investment vehicles that leave one less exposed than just "Follow the DJIA". You can't even gamble your money away on Crypto.