Technically it's a nono, but as long as you have a legitimate license key, no one is going to care. Just be sure to get the exact version you need, ie, Home Premium, retail.
Unless you can produce the CD Key, it is illegal. Original packaging is only good if it has the CD Key. Not 100% on this, but I would assume it to be fine, given you have the product packaging and code.