Yes, travel insurance does take care of many things when people get sick or injured but if you were to pass away, your family or travel buddy is usually left on their own.
A policy can cover cancellation fees, medical expenses, lost luggage or personal items, travel delays and other unforeseen costs and death insurance if requested in advance.
But, make sure you read through the policy carefully to understand the extent of coverage offered in the case of death or injury.