Yes, it's totally fine to reach out in circumstances like someone's death. You still care for the person.
About your niece - is this something you have always done? How old is she? I am assuming this niece is on her side of the family? Just asking cuz I am not sure how to handle this.