The right concept is this: programming in chatgpt is providing additional training to the model focusing on your particular problem. Your skill in performing that training determines the quality of the code output.