I don't do Yoga, and I'm not about to start.
It works if...I want to remedy what, exactly? Pain, you say. Well, of course it can ameliorate some sorts of pain—but it doesn't increase pleasure, in fact, according to Freud, it diminishes the potentialities of enjoyment.
If suffering is caused by our needs going unfulfilled, then one way to defend against suffering, a particularly self-sufficient way, is to, and I quote, "master the internal sources of our needs." Freud continues, "The extreme form of this is brought about by killing off the instincts, as is prescribed by the worldly wisdom of the East and practised by Yoga. If it succeeds, then the subject has, it is true, given up all other activities as well—he has sacrificed his life; and, by another path, he has once more only achieved the happiness of quietness." In contrast to the happiness of quitness, there is the "feeling of happiness derived from the satisfaction of a wild instinctual impulse untamed by the ego," which is "incomparably more intense than that derived from sating an instinct that has been tamed."
I've got enough quietness. I'll take the satisfaction of wild instincts any day.