For a regular 401k and a roth IRA, yes. But there are both traditional and roth 401k, and traditional and roth IRAs. So "roth" isn't specific here- you could technically be talking about a roth 401k or a roth IRA.
All 401k contributions (traditional + roth) max at $18,500. All IRA contributions (traditional + roth) max at $5,500. This is assuming you meet age and income requirements- closer to classic retirement age, those limits change. And there is an income cap on the roth IRA. Just be sure you look into that and make sure you qualify =)