Yes, but only in the dosages and on the schedule prescribed by your physician or dentist. You doubtless need the antibiotics, and you deserve relief from pain, but you should not take a combination of these powerful drugs just because you have them available.
You have to be guided by a competent medical professional, who knows you and your physical condition, your medical history, and your allergies or drug susceptibilities.