For some of things, sure.
But there are other things that do cause death, pain and suffering.
If you wrote code that's used in military weapons, that's a more direct relationship.
If you write code that's used to power gambling sites/devices, it's perhaps somewhat abstract - but there are a large number of people who are harmed because of how addictive these things are.
If you write code that's used for managing high-interest loans (like the point-of-sales type of 'buy-now-pay-later' of loans) - then you're enabling the exploitation of people who by-and-large cannot afford the things they're being told they can have, and will spend a large portion of their life paying these loans off.