Do you lose your death benefit on an endowment life insurance policy if you live until the endowment and cash it in?

If you cash in the policy then yes it will not pay the death benefit because you have cancelled the policy.