All this assumes that the inputs it is trained upon, and the results we expect are in fact true/correct of course.
It also reminds me of an old SF story about the Giant AI computer known as Multivac. Once constructed the users wondered what to do with such a powerful AI, so they decide to ask it some of the most difficult questions that have plagued mankind since antiquity, and it answered them. Eventually, they decided to ask it if there was a 'God' and after years of input and decades of 'thinking' Multivac annouced it had an result, the Users gathered and asked the question " Is there a God?" to which the reply was "There Is Now"