I usually understand ethics as a philosophical reflection of morality, hence I consider it a thing that is characteristic of self-aware entities, that is, all those "people" who have the ability to reflect on their actions, motives, desires , contexts and consequences.
This topic has been the subject of rich discussion not only in the academic field of philosophy and humanistic disciplines, but also in the literary genre of science fiction. If we submit this to a way of thinking inspired a little by Eco's ideas, in his book "Apocalyptic and Integrated," we can see that the positions can be divided among those who fear that AI becomes so human that it is capable of commenting on same atrocities that we comment on and may (due to fear) try to annihilate humans because they are very dangerous for their survival; as a counterpart, there are those who think that AI can be far superior to the human in the moral sense and turns out to be a transcendent existence, one that overcomes the limitations, fears and defects of humanity, opening the way for integration with the organic ones and providing an explosive evolution for the species ...
Surely it will be obvious to some colleagues that this last point of view is the one raised by the promoters of the ideas of transhumanism.
To conclude, as long as an existence is capable of being aware of itself and reflecting, I can accept that it is capable of developing an ethic, whether its material existence is based on organic, non-organic compounds or a mixture of both. Thus when AI is truly intelligent, the border between the "natural" and the "artificial" will be increasingly difficult to define.
This made me remember the transcendent movie
In which much of what I said is raised in a way that I find entertaining.