Anything that makes your code uglier is evil.
If you use ternary to make your code cleaner then sure use it. Sometimes in like php it's great to do inline substitutions, e.g.
"Hello ".($Male?"Mr":"Ms")." $Name That saves a few lines, and it pretty clear, but your example needs at least better formatting to be clear, and ternary isn't really good for multi-line, then you might as well use if/else.