First, I am so sorry for your loss.
Yes.
In the year that a dependent dies, they can be claimed as a dependent. The IRS treats them as though they would have been a dependent throughout the year had they lived. See
the following from IRS
Publication 501:
Death or birth of child. A child who was born or died during the year is treated as having lived with you more than half the year if your home was the child's home more than half the time he or she was alive during the year. The same is true if the child lived with you more than half the year except for any required hospital stay following birth.