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

Pat and Leslie's marriage to each other lasted forty years.

You should enter marriage for love.
different meanings