Do you mean this literally or figuratively? Literally, probably yes, one could attribute rottenness to the others. Fruit seems to begin to rot when there is a rotten one in the bunch,
Figuratively, it could happen, but only if the other people allow the person to affect them or their behavior. One bad or evil person could make things difficult for a group of people, but if the others are strong-willed enough, this 'rotten apple' should not be able to affect or change them. So, I guess I don't believe 'one bad apple can spoil the whole bunch.'