It depends. A full stop is used at the end of a sentence, so if yes is the last word in the sentence there will be a full stop after it. A comma is used somewhere in the middle of a sentence to separate the clauses, so if yes is the last word in a clause, but not the last word in the sentence, there will generally be a comma after it.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.