Although it is true that you have the "right of first sale" to resell something, and you shouldn't have a problem, just don't ask Apple about it. Most software companies claim that that right doesn't apply to software.
I have sold old copies of software and the new users have never had problems. Just make sure they don't make a big deal about buying it second hand if they call support.