Yes, a person who died during the year is treated as having lived with you for all of 2008 if your home was the person's home the entire time he or she was alive during 2008. Also, the dependent must meet dependency test requirements to qualify as well. I hope this has been helpful.
You should at least be able to claim dependant up until time of death and possibly the whole year. You may have to give copy of death certificate.