Making moves to start investing

What is everyone’s opinion of 401Ks from their job? I was personally thinking it would be best to take all the money I make from working and save it to invest in stocks like S&P 500. But I hear people say that they take it because the company they work for will match what the employees put in. I’m a little confused on whether I should do it or not. Any feedback is welcome.