A set is won by the first side to win 6 games, with a margin of at least 2 games over the other side (e.g. 6--3 or 7--5). There is usually a tie-break if the set is tied at six games per player.
Answer this question, making sure that the answer is supposed by the text: do you have to win by 2 games in tennis?
yes