Yes. But then the US also has to accept that now its military commanders and high-ranking security officials are legitimate targets anywhere in the world. But you see, the US won’t see it that way. If such an event comes to pass, they will raise a hue and cry claiming it was “unlawful”, “unfair” and tantamount to murder.
Very few states outside of the US accept the global war doctrine, whereby the whole world is considered a zone of armed conflict with respect to terrorists. The idea that he is a terrorist as opposed to an Iranian general also just seems absurd on its face. He was clearly acting in his capacity as a senior member of the Iranian armed forces, not of his own initiative.