Traditional 401k vs Roth 401k

Hello all,
I’m very familiar with a traditional 401k (excluding withdrawal exceptions) I recently got a new job, and have access to both traditional and Roth 401k’s. I’m looking at purchasing my first house. With a Roth IRA I know you can pull up to $10,000 penalty free for that purpose. Is that the same for a Roth 401k?