From my experience with ChatGPT, I can tell that most code examples don't compile or contain logic errors.
While explanations and research answers are usually fine, I wouldn't rely on code examples that aren't just a simple "Hello world!".
And for that reason I hope that GitHub Copilot is better than ChatGPT because if not, it will be totally useless.