This paper explores the potential and limitations of using ChatGPT in a programming course, particularly in a Data Analytics course. ChatGPT offers valuable assistance to teachers by generating class materials, facilitating teaching-learning activities, and designing assessments. Students also benefit from the technology, as it can generate R programming codes and serve as a learning companion. However, limitations include the generation of incorrect reference materials, the tendency to produce pattern-like content, and potential misuse. The study encourages replication in other courses to uncover additional strengths and limitations, contributing to the development of ethical guidelines for responsible utilization of this technology. The paper highlights the importance of human judgment and institutional policies to ensure the effective and ethical use of ChatGPT in education.This paper explores the potential and limitations of using ChatGPT in a programming course, particularly in a Data Analytics course. ChatGPT offers valuable assistance to teachers by generating class materials, facilitating teaching-learning activities, and designing assessments. Students also benefit from the technology, as it can generate R programming codes and serve as a learning companion. However, limitations include the generation of incorrect reference materials, the tendency to produce pattern-like content, and potential misuse. The study encourages replication in other courses to uncover additional strengths and limitations, contributing to the development of ethical guidelines for responsible utilization of this technology. The paper highlights the importance of human judgment and institutional policies to ensure the effective and ethical use of ChatGPT in education.