Anything humans made on this planet as far as software goes is 100% hackable..
Most software is crap and easily hacked. But it's definitely possible to create secure software. Some software, such as the seL4 kernel, is even formally verified. Even simply running a mainstream static analysis tool on your code and fixing all the warnings (which of course is easier said than done) is enough to remove most opportunities for hacking.