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

The line stretched clear around the corner.

You must wait in a long line at the checkout counter.
the same meaning