Scientists have ethical traditions. Scientists value peer review, truthful reporting about the methods and outcomes of investigations, and making public the results of work. Violations of such norms do occur, but scientists responsible for such violations are censured by their peers.
Scientists are influenced by societal, cultural, and personal beliefs and ways of viewing the world. Science is not separate from society but rather science is a part of society.