No, cause the defender has to play it - it was a random deflection and that's always an offside. The rules are pretty clear.
But let us look at the situation before that. No other Napoli player has a chance to reach the ball, therefore it's Higuain who causes the defender to stop his running...