There is a chance that we build artificial intelligence and raise it like an infant, so it learns on its own, and maybe one day it will pass the Turing test with what it has learned. On the other hand, if being programmed is an objection to being sentient, then so are we. We are programmed by nature and nurture, which may lead us to doubt our free will, but it never leads us to doubt ourselves being sentient.