Yes, back pain can be related to repeated bouts of coughing (resulting from both dry and chesty coughs).
The most likely reason is that you have strained a muscle in your back.
For some people, a severe bout of coughing has been known to cause hernias, or small fractures of the ribs. These instances are, thankfully rare.
If your problem is a muscle strain, I would recommend the use of Arnica gel applied to the affected area.
If the problem does not improve within a week, you should seek the advice of your doctor as any unexplained pain should not be left unattended.
Do you have questions? Please feel free to ask.
Stay up to date with the latest pollen information by finding your local pollen forecast from over 30,000 locations across the UK.