Is life used to mean the same thing in the next two sentences?

He wanted to live his own life without interference from others.

The life of this milk carton may be thousands of years in this landfill.
different meanings