Upgrade Gradle version

I need to upgrade my project gradle version to 6.1.
I tried to update gradle wrapper properties file . I just need to know updating wrapper properties file enough ?

This is enough to run your project with 6.1. If you also want to update the wrapper scripts, run ./gradlew wrapper and commit any changes that show up.