I am writing a poem and need to use the phrase "wrong from right" for the rhyme (...ight). Is "wrong from right" correct rather than using (teaching children) "right from wrong"
The order of the words in your phrasing is not as common as its reverse, however it's still perfectly understood and grammatical.
That aside, it would also be quite acceptable on the grounds of poetic license:
The freedom to depart from the facts of a matter or from the conventional rules of language when speaking or writing in order to create an effect.
So long as it appears deliberate, rather than a mistake, it's fine.
This is not directly relevant to my answer, but I couldn't help but be reminded of it.
"In Love, His Grammar Grew," by Stephen Dunn:
In love, his grammar grew
rich with intensifiers, and adverbs fell
madly from the sky like pheasants
for the peasantry, and he, as sated
as they were, lolled under shade trees
until roused by moonlight
and the beautiful fraternal twins
and and but. Oh that was when
he knew he couldn’t resist
a conjunction of any kind.
One said accumulate, the other
was a doubter who loved the wind
and the mind that cleans up after it.
he wanted to break all the rules,
light a candle behind a sentence
named Sheila, always running on
and wishing to be stopped
by the hard button of a period.
Sometimes, in desperation, he’d look
toward a mannequin or a window dresser
with a penchant for parsing.
But mostly he wanted you, Sheila,
and the adjectives that could precede
and change you: bluesy, fly-by-night,
queen of all that is and might be.