ChatGPT can produce code for simple programs. Especially those that have already been created. However, for complex codes, I have noticed that it produces the WRONG code that LOOKS right on the surface.