service-worker

Service-worker scope?

I am working on a PWA and would like to know if the scope or directory where the service-worker file is located can interfere ... push notifications. Will a file that is inside /statics/sw.js work the same way as one that is at the root of the project??