Maybe, but the defender's foot is almost right on the line of the penalty box and his arm is extended past that and towards the goal, so applying that logic you would have to say that his arm was definitely in the box when the ball hit.
The ref is in exactly the right position there.