Here is another scripture I found in Hebrews.
Heb 2:10 For it became him, for whom are all things, and by whom are all things, in bringing many sons unto glory, to make the captain of their salvation perfect
through sufferings.
This seems to me to be saying that God used suffering to make Jesus perfect.