Pregnancy

I have very bad headache I’m 7 weeks today. I was wondering if I can take midols or any pain pill for my headache ??