Deductions & credits

Yes you can.  Make sure that you indicate that the dependent passed away and the date of their passing.