Business & farm

I no longer have an employer’s 401k and I received a large amount of severance pay without that money going into the 401K.  So if I contributed $5000 to a solo 401k I believe that should come off my income minus the ½ self-employment tax? The goal is to reduce my AGI.