Deductions & credits

If the child lived with you from the beginning of the year until they passed in March then they are considered to have lived with you ALL year so yes you can claim them.  Otherwise NO.