Does word "life" have the same meaning in the following two sentences?

The battery had a short life.

Having experienced both, the vampire decided that he preferred (un)death to life.
different meanings