Is the word "die" used in the same way in the following two sentences?

To die to pleasure or to sin.

She died from cancer.
the same meaning