Morally right, maybe. Legally allowed, rarely. Tactically smart, basically never.
The only scenario I can think of when resisting arrest would be smart is if you're in a situation where you know you're not going to be given due process.
The only scenario I can think of when resisting arrest would be smart is if you're in a situation where you know you're not going to be given due process.