Yes, it absolutely is a valid reason to shoot someone, and anyone with training in firearms or self-defense would agree. You're not necessarily going to get shot for throwing a single punch, but you're increasing your chances of getting shot exponentially.
First of all, a fist can be a deadly weapon. It's possible to kill someone with a single punch, or knock them unconscious, or do all manner of nasty and permanent damage. Cops know this, as does anyone who knows anything about violence.
And this is crucial: every interaction you have with a cop in the US is colored by the fact that the cop has a gun on his waist. If you attack a cop with any kind of weapon, you've demonstrated that you're willing to use violence against him, and he has no way of knowing how far you're willing to take it. What if you get your hands on his gun? He knows that a single punch might be enough to disable him, even temporarily, and even a second's delay might be enough for you to grab his gun - and then he's fucked.
Cops don't carry guns for the exclusive purpose of stopping other people with guns. The point of a gun is to make someone stop doing what they're doing, and sometimes you really need someone to stop doing what what they're doing, no matter what they're armed with. We can't expect cops to be champion bare-knuckle boxers: if someone's attacking you with their fists, they're potentially threatening your life, and it's not unreasonable to use whatever tools are at your disposal to neutralise the threat.
Again: this doesn't mean that every use of fists should immediately be met with a death sentence. My point is just that guns can in some (not all) circumstances be a legitimate response to fists.
And on the more general point, that's not the only case in which it's justifiable for an unarmed person to be shot. In some cases of "unarmed" men being shot by police, the perp was trying to ram the cops with his car.
Conversely, not every case of an "armed" man being shot by police is justified either. Philando Castile had a gun in his car, but he didn't deserve to die.