It is not advisable to take antibiotics at random. Taking them inappropriately ( the wrong antibiotic, inadequate doze , or duration) can make you unresponsive in the future.
Also antibiotics don't take care of pain, in the short term. You need to visit a dentist , for the proper diagnosis and treatment.
Next Steps
Visit a dentist
Health Tips
Don't delay too long, although the pain may go،it will come back more severe.