Is there any such thing as Pain Induced Lucid Dream?

I experienced this last night. An old shoulder injury has been irritated by the work I'm doing right now. Early this morning, I became aware of the shoulder pain in a dream (because of the way I was laying in RL) and had a few minutes of lucidity as a result, though it didn't last long.

Being in pain sucks, but maybe this is a way to make lemonade from lemons?

Has anybody else had similar experiences with pain in dreams?