The general case (“Wishing is an unproductive mental activity”) is true, but the special case (“You cannot get something just by wishing for it”) better conveys the intended meaning.