That depends on where you live. In Europe you have
European Court of Justice ruled on July 3, 2012, that it is indeed permissible to resell software licenses even if the digital good has been downloaded directly from the Internet, and that the first-sale doctrine applied whenever software was originally sold to a customer for an unlimited amount of time, as such sale involves a transfer of ownership, thus prohibiting any software maker from preventing the resale of their software by any of their legitimate owners
In the United States the issue is working its way through the courts. Basically some courts are willing to call a spade a spade. And know a sale when they see one.