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

A ship in distress.

She was the classic maiden in distress.
the same meaning