No, you would just need to rashly and impulsively act in a way that does not violate the code.
A samurai who impulsively decides to buy his wife flowers just because some catch his eye is not violating his code.
That's not the same thing though. I mean not every decision one makes is guided through the lens of a code.
Im sure Captain America doesnt agonise about the morality of deciding whether to jump in the shower or not.
The more appropriate question is 'Does this person regularly consider their actions via the lens of a code of conduct that guides their actions, with the code determining (
limiting) how they act?'
Eddard Stark does this. Worf does this. Captain America does this. Judge Dredd does this. Frank Castle does this.
Jack Sparrow does not do this. Deadpool does not do this. Ragnar Lodbroek does not do this. Captain Kirk does not do this. MCU Thor does not do this.
The important part there is breaking the code all the time, not acting rashly and impulsively.
If you're acting rashly and impulsively, you're not considering your actions through the lens of your code. It is not guiding your actions and decisions.
How can you be said to be complying with a code of conduct when making a decision, if you never even consider the code of conduct when making your decision?
Thats akin to a Judge making a ruling on a Law (that he has never read and is unaware of), that just happens to turn out to be correct by sheer fluke.
He's not acting lawfully there, or making a decision through the lens of the law. He just got lucky.
If you break the code all the time you can reasonably be said to not really follow that code.
No, in order to follow a code, you have to actually
follow a code.
Not just get lucky making a bunch of random impulsive decisions that by sheer coincidence happen to align with a code you once considered.
Codes limit actions. Eddard Stark did not want to go to Kings Landing, but he was honor bound to do so. He did not want to execute the deserter, but was legally bound to do so (and considered him
personally obliged to be the hand that swung the sword himself). He considered his response to these events through the eyes of the law, his own personal code, and what he was honor bound to do.
He didnt go around making rash and impulsive decisions. He always considered his actions by reference to his obligations, duty and responsibilities to King, family, his people and honor.
Can you see the difference between him, and (for example), Bronn of the Blackwater?
Lysa Arryn: "
You don't fight with honor!"
Bronn: "
No... but he did."