Sure they will - some people / scientists / programmers will do anything for money or cave to pressure from management. Look at any atomic / nuclear weapon - who builds a weapon knowing it can kill millions with 1 shot ; look at the holocaust - (excuse my ignorance) killed (hundreds?) of thousands in the name of science / ethnic cleansing. Any bio-chemical weapon. All of these things done in the name of science for money. Did the scientists know what they built / did could kill that many people? Maybe, maybe not - but don't think they worked on these projects for free or did them because they thought they were improving the world and they (the inventor) were safe cause they built / did engineered it.
Give a programmer enough motivation - be it money, fame, power, fancy laptops - and they'll give you whatever code you want. Send me a black on black Aventador Roadster and I'll build you whatever you want, no matter how long it takes :)