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

That dress caught her eye.

He tried to catch her eye.
the same meaning