Yes.

In that case, can you share the log of what error are you facing?

Like screenshot or something.

And you can simply run composer install directly into server rather then copy pasting the folder.