Should dependencies for shopify app frontend and backend be installed in their package.json

Hi,

I noticed that my nodejs shopify app project contains three levels of packages.json. One is in the outer most level. Another one is inside the web folder. The last one is inside the frontend folder. Should I perform npm install for packages in different level based on what the packages are for?

Thanks!