Definition of yes:
(v) :
a word used to show
agreement or acceptance; a word used to indicate disagreement or dissent in reply to a negative statement
"yes, you are correct."
(n) :
an affirmative expression; an answer that shows agreement or acceptance; a vote of support or in favor/favour of something
"was that a yes?"