Do AI become enemies with each other?

In a game I am in right now, two AIs are working together to attack me, and have both launched at the same star. If I get my ships out of there and they wind up destroying each other, will they become hostile to each other the way they would through combat with a player? Or do they always work together no matter what?

Yes, I have seen AI KO other AI.

But I have also seen AI improve regard with other AI after earlier combat.