Can you use code from somewhere else in your game? For example: taking the code of a tutorial directly
Yes, you can. The code from the tutorials fall under the conditions of the second rule on the main page of the jam.