You wouldn't get back all of your premiums, but most of the premium paid would be returned to you.
For regular term life insurance policies there would be no return of premium if you outlive the term of your life insurance policy.
Also, in lieu of taking the cash, you could opt for a paid-up life insurance policy, or you could possibly convert coverage to a permanent life insurance plan and roll the money into a new policy if that option is available to you.
However, normal term life insurance pays you nothing at the end of your policy if you are still alive.