No, they are not. In short, machine learning can be considered a sub-discipline of artificial intelligence.
Artificial intelligence can be described as a type of technology that enables computers to imitate intelligence and perform tasks autonomously and adaptably. This means that the computer solves complex tasks without the need for a human operator and learns independently from experience and acquired data, regardless of the complexity of the task.
Machine learning, on the other hand, only specializes in the sub-area of adaptability. Based on generated data sets and algorithms, systems can recognize patterns, regularities and develop solutions. The more "artificial knowledge" there is in the form of data, the better the system can solve complex tasks. Machine learning therefore enables AI to develop further.
An example:
A number of websites today offer the option to chat with customer service representatives. However, not every website has a live agent to answer your questions. In most cases, you will be speaking to a chatbot. To be able to model a chatbot effectively, thousands of conversations between customers and support agents are needed. In addition, the longer chatbots are in use, the more intelligent they become. They constantly learn from user feedback and improve their skills as they are used for longer. This is how machine learning works.