Deductions & credits

Yes.  If you're a cash-basis taxpayer (as most of us are), you take expenses in the year they were paid (check date).