Ttc and take Vicodin

Heidi
I got two teeth extracted and have to go back next week for one more extraction. Dentist gave me Vicodin and ibprohrin for pain. I should have af this weekend so maybe be pregnant or still ttc. Is taking those drugs safe?