Rules about pre-made shader code

Hi ! I'm curious. I'm trying to learn toon shaders for Unity, and I wonder if it's something I'll have to redo from scratch (as it's art-related) or can just copy and paste directly (as it's just some basic shader code found in tutorials on youtube) ?