Does updating the version of mongodb affect the system's program?

Hi, pro
Now, I want to update my mongodb from 2.6.9 to 4.0.28 or maybe higher.
But i am worried when i update mongodb will affect system program. For example, there is syntax change (mongodb driver syntax) that causes the project to crash.
My back-end is Nodejs (v6.11.5) and mongodb driver version is 2.1.0

If it doesn’t affect anything, that’s great.

Thanks very much

Check release notes for any incompatible changes.