Does conducting research at a Stanford Lab affect my chances of applying to Stanford?

Does conducting research at a Stanford Lab affect my chances of applying to Stanford? Also, I plan on obtaining a rec letter from my lab pi, who is an associate professor at the university.