Life insurance can be a smart tool for protecting your loved ones. Here’s what to know before buying a policy.