” Cant anyone make a program hack proof?.”
The only perfectly secure computer is one with no network connection, no keyboard, no display, no other connected peripherals, and no non-volatile storage. And if you want ridiculously secure, better not have powered up (because of emanation security).
Now if you can’t live with the above conditions, you can put some countermeasures in place to reduce vulnerability and mitigate risk, but you have to recognize that this what you are doing.
Code is sort of the same way.
So much for technology