Exactly! AIs use similar methods to make decisions all the time.
If you haven't played tic-tac-toe in a while, that's ok. The AI wins if it adds X in the top right, so decision B.
X
B