Is way used to mean the same thing in the next two sentences?

Do you know the way to the airport?

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