If you mean hacking in the media sense, then no. All you need to know is the basics of networking like TCP/IP and etc. It's not really a computer science subject so much as it is IT and Networking.
Cryptography, however, is really mathematical. Yet, if you get the basics behind, you can...