Yes, since nerves are all connected, it's quite possible that a pinched nerve in your back or neck would cause you to tense up and the pain could show up in other ways, such as a headache. Visit a pain management center for the latest on pain blockers or other treatments that can ease your pain.
Pinched nerve may be the cause for headache on the right side due to pressure. If pressure is cheked and treated it will be relieved. A very good sleep is also a weapon for it. Sleep without a pillow. Never wake up suddenly. Avoid taking pain killers with the doctors consultation