Absolutely. That's where the nuance/grey area is. Especially with good/neutral.
Not just killing, but in general, yeah.
Note the Paladin spell in many editions "Atonement". These thoughts are kinda baked in. Even the idea that good characters can do evil acts... not being able to do any evil acts is specifically pointed out as a Paladin thing, so the "exception makes the rule" implies that other good characters can, to at least some extent. (You can actually look at hte Paladin restrictions as a list of what Good characters normally can do, at least to some extent, since they're called out explicitly)