I'm of the opinion that it is always a kind and appropriate decision to get in touch with someone who's lost a loved one to remind them that you're thinking of them and have fond memories of the deceased.
In life the only thing that you can expect is the unexpected; the only surprise is a day that has none.