Yes, if you want to work in artificial intelligence or machine learning, you'll need to know how to code.