Yes, you can copy the files across — but whether the software then runs from the drive is a separate question.
Portable programs are designed for exactly this and work fine. Anything that writes to the registry or needs an installer will usually refuse to start properly, because the setup it depends on lives on the original machine. And if the software is licensed, moving the files does not move the licence with them, so check the terms before you copy anything commercial.