Copy and paste

Hello teacher luke, is it legal to copy a text on the test and paste it ?

For example in the listening question, can i copy a text from the conversation and paste it in the summary writing?

Thank you