If a person does that, you should fire them. However, if they use ChatGPT (or one of the models that surely follow) as the tool that it is, you shouldn't. GitHub calls it copilot and it's an apt name.