Can you contribute to both employer sponsored retirement plan and IRA

So you'll have both both employer sponsored 401K or 457b and Roth IRA per tax year.   Is this allowed?