Iris is absolutely correct. However, here is a variant used in America: "An ounce of prevention is worth a pound of cure."
This idiom may be used literally when speaking about actual diseases, or figuratively when speaking about other things. Example: "Be sure to take good care of your car. If you don't change the oil regularly, you may damage the engine. Remember: an ounce of prevention is worth a pound of cure."