You are correct. ChatGPT generates code/steps that does not always work because of its limitations of training cutoff / no access to current knowledge. This might be fixed as LLMs become more powerful.