Absolutely, and real professions with real professional ethical standards have considered such questions[0] and taken informed positions on them. Nothing of the kind exists for programmers.
[0] https://journalofethics.ama-assn.org/article/ama-code-medica...