Should I max out my 401k if I can afford to?

For example I make 100k, max 401k is 20k ish, should I max it out every year or what is a good amount to invest or do I stick with whatever the company is matching me?