What a ridiculous argument. You did not tie the insertion of God into the pledge with the McCarthy hearings. Instead all you have said is that they occurred at the same time.
By the same stupid logic, you could also say that the national highway system, I Love Lucy, statehood for Hawaii and air conditioning are a result of the "Red Scare".
Americans were concerned (and rightly so) about the communism movement. Communist governments' outlawing of religious practices and so on was terrifying to the American public.