Yes, the Dead can and do vote even today, and it can be legal. In 1976 I arranged a postal vote for an elector who used it (I posted it for him, having witnessed his signature) on the day of the election I attended his funeral, an hour later I attended the postal vote opening as a scrutineer, and saw his vote opened and the Identity checked, the second envelope containing his ballot was then put in the pile to be included in the count. Legally if you think about it, there is no difference between this, and getting hit by a truck on the way home from voting. Must happen in every election where absent voting is allowed.