It absolutely does. One of my first programming interviews, post MSc graduation, was essentially a 3hr whiteboard interrogation. I should have walked out after an hour as, in retrospect I was stuck like a rabbit in the headlights, unable to think straight as this unpleasant interviewer essentially tried to dismantle every angle of my understanding of a subject. I was gripped with anxiety and lost confidence. He claimed he was just trying to find out the edges of what I knew but boy did he do it in an unpleasant way. Interrupting, making slightly snide comments, being plain rude at times. I think he was either an actual jerk or maybe just not very good with people.
Anyway, other than that interview where I was super stressed and tanked it, all my others have been nothing like it. Just goes to show how stress and a loss of confidence can wreck your chances.