Yes, if your students gave ChatGPT the same mark scheme and same prompt, it would generate different answers. If the students specified that they wanted an A-grade, full mark, answer, it would do its best