Yes, but if you have not satisfied the five-year holding period rule and the distribution is nonqualified (other than for death, disability or attainment of age 59 ½) and not rolled over, the earnings on the Roth 401(k) would be taxable (subject to final IRS regulations).