No, it would not have been a surprise if he were hanged on Friday. The prisoner disproves the existence of a strategy for the judge that guarantees surprise, but does not disprove the existence of a strategy that gives the possibility of surprise.
He concludes that because he assumes what the judge said is true. If we assume that, we must reject the scenario where he gets executed without surprise.