Meh. Such moral absolutism leaves no room for fate. I had a colleague once whose wife was dying of cancer and he understandably had severe trouble focusing on his work. That does not make him "bad people" even though his code wasn't perfect all of the time.
Good people do make good code, they aren't spared the struggle of life. His attempt at working would be seen as good. He didn't experience a moral failing, for failing to produce commercially viable code.
If I write some ugly code to get prod back online ASAP, did I immediately become a bad person? Or do I only become a bad person after some number of weeks passes and I haven't refactored it to clean it up yet?
It's based on human character. Good people produce good code, or "timeless" code, bad people write "bad" code (means it's a tech debt).