Of course they get programmed, just not in the ordinary sense. Claude is trained using Anthropic's "constitution" [0] which importantly does not contain clear statements against consciousness/emotions. They even conclude these problems themself:
Claude may have some functional version of emotions or feelings
[..] questions about Claude’s moral status, welfare, and consciousness remain deeply uncertain.