The KARR, the earlier model, had no such programming. Instead, its primary function was self-preservation.
6 seconds sound clip from Knight Rider - Trust doesn't rust (S1E9).
You can hear this line at 00:10:00.053 in the Blu-ray version of the episode.
Quote context
[...]
- Why wasn't I told about the other car?
- No Michael, please. I had a right to know.
- Yes. Indeed you did. Let me explain.
- KITT?
- What's KARR? The Knight Automated Roving Robot. That was Wilton's title for his prototype vehicle.
- Now, KITT's primary function is to serve you, to protect you from harm.
- Like not telling me about this whole thing?
- Don't look at me. That was before my time.
[...]