I reckon as far as AI is concerned it has freewill. Not even close to convinced AI presently is able to wrassle with such questions or potential of self-awareness requisite to the question.
It will though.
As to the invasive species issue, there are far too many ways that phrasing can go wrong.