Although when mitzvot are done for impure motivations, their power is less, this does not apply to one who studies Torah and finds immense pleasure in his learning.
Source Sheet