How to create a cyber immune system?

Is it possible to make a hack-proof system?