Yes. You can buy it at any pharmacy. Unless they are out of stock.
There really are no such things as prescriptions in Thailand. Lots of normally prescribed drugs in western countries are available in most pharmacies. Some drugs are controlled though and you can only get them from hospitals, which means having to see a doctor there.
I would also add that pharmacies will sell locally produced and imported versions of the same drug.