Yes! Hacking could be ethical also. Ethical Hacking is the term for White Hat Hackers who with proper consent and authorization work inside a company’s or organization's network and computer systems to detect loopholes and security vulnerabilities to help fight any cyberattack or to prevent any data theft. These Cyber Security specialists find loopholes and patch them with what they feel is necessary. And their job is to continuously monitor all the activities and ensure that no hidden activities are being performed by employees as well as outside people to ensure maximum safety. This is what an Ethical Hacker does.
To become an Ethical Hacker, you need to have been CEH exam qualified, and for that, I would highly recommend you to enroll in an CEH certification Ethical Hacking course. Also, check out our YouTube video on Ethical Hacking Career, Roles, And Responsibilities.