Is pain virtuous?

No. To be in pain, and to suffer, and to somehow inflict more pain, hardship and misery upon yourself is foolish at best.