Another way to say "You can use a pill to cure an illness" is "Illness can be cured by a pill."