Is it possible to remix or copy somebody's code? If yes then how?

Is it possible to remix or copy somebody’s code? If yes then how? I’m just starting Unity and I need to learn to script. I decided I wanted to look at some examples.

Yes. Just copy-paste the code.