No, although the two aren't mutually exclusive. Most bots are created to do a specific task. Their actions are dependent on the code used rather than machine learning. Some software bots use artificial intelligence, such as Google Assistant, but it's not a prerequisite.