Sin may impact sickness when a patient is ill not because he or she has sinned, but because that person has been sinned against.
What is the relation between sickness and sin?
The Bible affirms a general connection between sickness and sin—that death, disease, and decay were not part of God's original design for human beings. Beyond that, it is hard to generalize, since some illness does result from sin, some from being sinned against, and most through no fault of the patient.
Does God protect us from sickness?
The idea that God punishes the wicked with diseases to which the virtuous will be immune exists in many religions and goes back at least as far as the Hebrew Bible. Psalm 91, for example, reassures believers that God will protect them from “the pestilence that walketh in darkness…