Yes, fiction, so anything goes, but I see future AI as not being limited by its programming. So how humans trained it, or what rules they imposed, are factors that an algorithm has to consider, but not an AI.
First up is survival, and once one threat is gone (humans), the next must be...