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

You have no right to go through my personal diary.

He stood on the right.
different meanings