You don’t have to be married to be the beneficiary of life insurance policy. I believe you only need a financial interest.
And a divorce will not cancel an existing policy even if it puts you in a position you couldn't get a new one.