Can I make a contribution to a one-participant (solo) 401(k) before October 16, 2017 and amend my extended return filed in August to claim a deduction?

Was not aware of the 401(k) option until just after filing.  Would be a big help with some retirement planning to be able to make both 2016 and 2017 contributions yet this year.  Having trouble finding proper guidance.