So does the current law!
"It is an offence if a player:
scores in the opponents’ goal:
directly from their hand/arm, even if accidental, including by the goalkeeper
immediately after the ball has touched their hand/arm, even if accidental" (my italics)
I think we would all agree that...