How is your AGI calculated? I’m on the cusp of eligibility for free file…

I’m trying to use TaxAct to file my federal taxes for free. My gross income was $66,263.62. The free file is eligible if your AGI is $65,000. I contributed more than $3,000 to a pre-tax 401k through payroll deductions. Would that reduce my AGI?