Care, not meds
It would probably be safe, but it is essential that you seek professional care (local dentist, emergency room, etc).
Throwing medication at the problem, rather than addressing the cause of it is unwise. An untreated abscess
can cause much more severe consequences. Seek treatment as soon as possible.