Explanation
Yes. Historical records describe ketchup being used or recommended as a remedy. However, ketchup did not always mean today's tomato condiment, and a historical medicinal use is not evidence that a treatment worked.
A December 8, 1789 newspaper item preserved in the University of New Brunswick's Early Modern Maritime Recipes database describes mushroom ketchup as a treatment for skin complaints. Separately, Popular Science's historical account describes physician John Cook Bennett promoting tomatoes, including tomato catsup, for digestive complaints in the 19th century.
The broader tomato-remedy craze also included products sold as tomato pills. Those products should not automatically be described as bottled ketchup or pills made from ketchup. The supported conclusion is that ketchup had medicinal uses and claims attached to it, not that modern ketchup originated as a proven medicine.
Key takeaway
Ketchup really appeared in historical remedies, but the recipes varied and the records do not establish that those remedies were effective.