Since there are comments refuting you, I'll provide an anecdote the other way. My coworkers absolutely do this to every single potential interviewee.
On multiple occasions I've had to talk them out of not wanting to even interview based on one random file in a random repo by the interviewee.
Because of this, when I start applying I hide all my repos that I'm not mostly proud of.