Does the word "end" have the same definition in the next two sentences?

He came to a bad end.

The end of town.
different meanings