Only if the player who handled gains control/possession ... spirit of the game again...Or, and i know it's a crazy idea, they felt he had committed an offence by handling the ball?
Handling the ball and creating a goalscoring opportunity is an offence. No need for "spirit of the game".
Back to the OP: the defender should have gone through the ref to get to the ball. I said a few weeks ago that refs are in the way too much and acting as an extra defender and one day a ref was going to get carted.
Spirit of the game and all that....