I took out money from an inherited IRA in early 2018, can I repay that and reduce my tax burden?

I inherited an IRA from my father in 2017.  In 2018, I needed to take a distribution and closed the account.  I am receiving further inheritance, not in the form of an IRA, but could I use a portion of this money to put back into an IRA or a previously closed 401k to reduce my taxes in 2018?