Absolutely, only their are always conditions that must be met first. God never fails to do what He has promised in His word. But if you don't know that it is His will to heal you, then it would be better that you just take the medication, because God honor His word and the faith He has given you, not hope. In other words, He will not heal you if you are hoping. You must know that He will, because He said He will, in His word.
And the word of God plainly states in simple language, that it is His will for you to be healthy and whole, that is to say, not sick. Again, if your not sure it's His will or that He will heal you, take the meds, it will work better.