Ofcourse it is fine to take painkillers, I'm not sure who told you that, but if it is that severe your best bet is to consult your doctor incase you need something bit stronger.