It's true if you don't have any other files such as HTML templates or CSS or whatever; which is fairly rare (don't even get my started on stuff like Packer which embed binary content inside the binary executable...).
Nowadays, deploying any project should just be one docker build . away whatever the language.