While formal degrees are beneficial, online courses and specialized certifications can also pave the way to an AI career.