No, it's more like, that'll cause the tools they use to detect plagiarism to flag the work as plagiarism.
Then the teacher confronts the student, and they have to defend themselves from the accusation.
This wouldn't actually get the student punished, if they're any good at defending...