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

Come this way and I'll show you a shortcut.

He said he was looking for the way out.
the same meaning