No, it is not quite a great idea to consume over-the-counter medicines for curing your stomach ache as it will most of the time increase pain and also add irritability in the stomach, so try to consult a medical professional before taking any medicines on your own.