That's the good old recurrent theme of the lotus eaters, I don't think any Star Trek series has missed taking a shot at it. Weirdly, you'd think that the main computer in Star Trek would have made them stupid, but they override it pretty frequently.