No, that's definitly not true. The AI attacks you as opportunistic as with any other exe. The difference is that it is not that backstabbish: an alliance gives you at least a little security not to be attacked the very next turn after signing it.