Each 401(k) plan is different and your plan's rules depend on what your company selected when they setup the plan.
All plan provisions, including eligibility requirements, contribution types, distributions, and other rules are explained in the Summary Plan Description. Follow the below instructions to download this document.