Yes, Helen Mirren did audition for the role of McGonagall in the Harry Potter films. However, she was ultimately not cast in the role. Mirren has spoken about her audition for the role, saying that she read for it but didn't get it. She also said that she would have loved to have played McGonagall if she had been cast in the role.