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

Start at the beginning and go on until you come to the end.

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