Maybe the question should be: Is Starfleet there to do "the right thing"? Whatever that right thing is. Save civilizations. Emancipate slaves. Kill false gods. Rescue primitives from themselves. Spread peace, love and synth ale. Or is Starfleet really just a bunch of glorified future sociologists. Look, record, and leave.