Maybe not.
If you project is a static site that only contains html, javascript and css, and does not require npm packages to run, then you don't need them.
Feel free to remove any server.js files, along with package.json and your static site will work without them.