The answer is True. Doing something morally good has a morally bad side-effect is known as double effect, it is ethical to do it provided that the bad side-effect is not your intention. This is common in the case where a doctor gives drugs to a patient to relieve painful symptoms even though he knows doing this may shorten the patient's life.