Oh, no, the AI will play randomly unless it can immediately win or it sees you could immediately win (and it blocks you). You can set up a situation where you can win in two different ways pretty easily, with a bit of luck.
Edit: It will also always take the center position if it's free!