McCarthy had no connection to the HUAC hearings. More media lies.
You are correct. Sen. McCarthy had access to decoded Soviet diplomatic messages (the Venona papers).
A few people were falsely accused, lest the Soviets become suspicious.