Yes, you can use your HSA to buy over-the-counter medications, such as Tylenol.
Previously, OTC-medications were not HSA-eligible expenses without a prescription. But the CARES Act removed that requirement for Tylenol, as well as a number of other common OTC medications and products.