Depends on what the meaning of the word "legal" is.
Perhaps you've heard of the 5th.
Legal is legal ,,, a killing in self defense is a “legal” homicide; an execution called for in a criminal sentence is a legal homicide... etc. etc.