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

A stretch of clear water.

He did a stretch in the federal penitentiary.
different meanings