Instantiating

If I have a line
1-instantiate(“myprefab”)…
The prefab had a script attached to him will run by instantiating the prefab.
then line line :
2-Debug.log(“any text”);

My question is :
I want to know the procedure.
It will instantiating the prefab then will run the script that attached to the prefab then will run the next line .the debug line .
Is that right ?

When you instantiate a prefab Awake is run immediately. Start will be scheduled to run before the next Update loop. So timing of your Debug.Log will depend on where you’re calling it.

Can you be more clear .
You mean if I run the instantiating on Awake() the debug will be the last step …
What about butting the instantiating on the Start() .