Sometimes it is if the company feels generous, though even in countries with strong employment law these benefits have no statutory protection.
One of my previous employers had a rule where they would vest all of my RSU if I were to die while employed there.