Can the same earned income be used for Roth 401k and Roth IRA?

Say eligible earned income is $10k, and $10k goes into a Roth 401k.  Can an additional $5k go into a Roth IRA?  Turbotax is allowing it but it seems wrong, although I can't find anything to indicate it is not allowed.