Node.js modules

Hello, does importing a module A to module B is equal to copying and pasting the code from the module A to module B?
I was wondering about it becouse when I was using a passport.js I made another file for passport.use( ) function (where I obviosuly required ‘passport’ module) and then imported this function to main app.js file. Everything was working fine however I was concered about that I was importing the passport module two times, in app.js file and in file made for passport.use function. Shouldn’t I use the same passport variable declared in app.js file everywhere else? Could someone explain this for me please :slight_smile: