Deductions & credits

So does that apply to both Roth 401K and Traditional 401Ks?