pull down to refresh

Does the law currently permit software engineers, programmers, technologists, etc. to talk about or report that they are or were tasked with developing technology that they find morally reprehensible?
I am looking at the extent to which a lawful severance agreement can squeeze an employee into silence, and the thing is, protecting trade secrets from being revealed is likely a huge paper chain that most software engineers find their contracts wrapped up in.