It was very common not to long ago.
It is less common now.
There is nothing illegal about it if the plan has a provision that termination distributions are not made until the anniversary of your separation from service. In fact the plan, if written as such, can restrict distributions until you reach retirement age but that's very rare in a 401(k) Plan.