Q: Does "come" have the same meaning in the following two sentences?

Come out of the closet!

He came from France.

A: the same meaning

Q: Does "end" have the same meaning in the following two sentences?

The end of the year.

One end of the box was marked 'This side up'.

A: different meanings

Q: Does "nationality" have the same meaning in the following two sentences?

Such images define their sense of nationality.

Immigrants of the same nationality often seek each other out.

A:
the same meaning