Hi, many thanks for the query!
No, the arm pain
doesn't seem to be related to headache (on back side).
What your doctor says is absolutely correct, take pain killers & muscle relaxants for severe arm pain which will also relieve your headache.
Avoid lifting heavy weights.
Wish you a good health. Take care.