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