The necessity and precautions of taking anti-inflammatory injections before pregnancy. Taking anti-inflammatory injections before pregnancy is a question that expectant mothers often consider. The function of anti-inflammatory injections is to inhibit and kill pathogenic microorganisms in the body and reduce inflammatory reactions to ensure the health of expectant parents.