I don't see any reason that you couldn't. I further don't see any reason that security would even know. At the 5th Ave store, once you get to the front of the line outside, they give you a ticket. Once you have your ticket, you can go in to the store and get in another line, at which point someone will come ask you for your ticket. Or you could leave, fly to Paris, spend the night, return to NYC and then go get in the second line with your ticket in hand. The point is -- once you have the ticket, you could give it to someone else, sell it, etc.
How long is the line at the 5th Ave store these days?