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

The so-called glorious experiment came to an inglorious end.

The end was exciting.
different meanings