No it doesnt but remember when pain tried to control naruto through his chakra rod, with the rinnegan at close range. Naruto overpowered him and reversed the effects, So it does something just doesn't give immunity.
Of course it doesn't grant immunity to Genjutsu all it is just enhances abilities already learned by its users and enhances the users battle perception greater then those without it.