ChatGPT can give you a completely wrong answer with as much confidence as a right answer. If you're skilled enough to see the difference, it can save you some time, but if not it will make your coding a lot worse. Be very careful.