No, using ChatGPT as a resource is not cheating. It helps you better understand and reinforce the material you're learning in class.
However, it's critical to remember that homework enables you to develop critical thinking and problem-solving skills. And that relying too heavily on external resources can hinder your learning.