Retirement tax questions

So if it applies to 401k only, can I contribute post-tax $6k to my current employer plan (assuming it is permitted) and then once I separate from the company, request a rollover of the $6k to a ROTH IRA and the rest to a traditional IRA?