Headache! ?

Marissa
I'm getting my wisdom teeth. I just found out yesterday that I'm about 4 weeks along. Is ibuprofen safe during pregnancy? I usually take 600 mg, but can take 400. Thanks for your input.