Changing the server path

WordPress doesn’t rely on server path, it relies on the URI. When the WordPress code is loaded, it will define the proper paths itself dynamically by using PHP constants like __FILE__, such as ABSPATH which is the absolute path to the WordPress’s installation.

So, as long as your domain remains the same, you should not experience any problem.