Inaccurate.
It is likely that the apple in question never hit Newton's head. The more likely story is that Newton was sitting under the tree (which he was known to do) and saw an apple fall to the ground. This was the inspiration needed to make him start thinking about gravity.