Yes, ChatGPT isnt a general AI or even a full AI, just machine learning. It does however have preprogrammed boundaries where it will assert it will not return any answer. That is a moral principle, though not a learned one.