Yes, there are black hat hackers that became white hat hackers. Some national agencies hire them to use their hacking skills to test systems. It is better to hack a system to check its defense for companies than to illegally hack.