move a layer from one file to another

I have a newbie question. Is it possible to have a script copy a layer from a file to another. Can the file that i’m copying from be closed?
I’d like to have a script overlay my logo onto my pictures.

Is this ppossible?

opps I’m using Photoshop here