Since you must place three X’s or O’s on the board in a row in order to win, then it is impossible to win tic tac toe in two moves. You could win tic tac toe within three moves, but that is very unlikely. The only way to win tic tac toe within three moves is if your opponent doesn’t figure out that you already have two X’s or two O’s in a row.
That would be if they weren’t paying attention. Usually, in order for someone to win at tic tac toe, it is usually the last two turns for that person. Also, a person may win quickly if their opponent is not paying attention. Then they could win based on that. However, winning in the first three turns is unlikely.