There is no such thing as a lucky punch, since the fighter threw the punch with the intention of it landing on the opponent.
If, however, the fighter didn't throw a punch at all and the opponent still got knocked out... That is a lucky punch. :P
What if you just wildly throw a punch because you just got rocked and ko the other guy? I would say you were lucky since you just threw the punch hoping anything would happen.