That is impossible in light of all the scriptures we have considered. If you’ve been persisting in disobedience, it could be true that God has permitted your sickness in order to bring you to repentance. But it is still not His will for you to remain sick. He wants you to repent and be healed.
Additionally, if God wants you to be sick, then why are you going to the doctor and taking medication, hoping to be healed? Are you trying to get out of “God’s will”?