You can contribute to both accounts. In fact, it's a good idea to max out both your 401(k) and Roth IRA if you can afford it. There are limits to the amount of money you can contribute to your 401(K) and Roth IRA every year, but the limits are separate from each other.