Noun: When "boyhood" refers to the period of time in a person's life when they are a boy, it's a noun.
* Example: "His boyhood was spent in a small village."
Adjective: When "boyhood" describes something related to boys or the period of being a boy, it's an adjective.
* Example: "He had a boyhood dream of becoming an astronaut."