Yes, Ethical hacking requires coding and the most essential skill to become an ethical hacker. Python, SQL, C, Java, JavaScript, PHP, C++, Ruby, and Perl programming languages used by ethical hackers.
I would suggest enrolling for this Ethical Hacking Course by Intellipaat to speed up the learning process and for guidance from professionals.
Also, watch this video on Ethical Hacking: