If we can usually raise a human to be a good person that wouldn't do genocide I'm sure we can raise an AI, especially since we have direct access to its brain and many, many retries.

That's a big if actually.