No. Programmers don't have to be lawyers but they do have to make ethical decisions and be willing to enforce them (by walking away from money offers to do something that violates their principles).
Sure, executives will always try to push the blame downstairs. That's why you should be willing to sell them out if necessary.