I would agree, I think it also has the "knock unconscious" meaning though, obviously metaphorically though. One because they have "knocked out" the opponent but also because "stun" to mean surprise probably arises from the original "knock out" meaning.