Can I use diclofenac sodium im inj to relive headach?

Potentially. NSAIDs can be used to varying degrees of success to treat headaches. The main contraindications would be ulcer disease, cardiac or kidney disease. Or a known allergy to NSAIDs; can also worsen asthma as well. Don't hesitate to be seen to discuss directly with your doctor.