No, it doesn't need to be changed. You could change it in this case though.
"Isn't a gerund same as a to-infinitive in meaning and usage?" No! I'm surprised you can ask this, keannu. We get questions about "-ing forms" and infinitives all the time. (But I might be unjustifiably assuming that you read some threads other than your own). Sometimes they mean the same, and sometimes they are significantly different in usage and meaning.
In this case, either will do.
Student or Learner