from an existing CD, as long as you use an unique license key that you don't use anywhere else and that's not an OEM key either (because that's bound to the original machine).
I doubt, however, if you can put Windows on a Mac, that way.
Kees
Is it illegal to use a reinstall disk to put windows on a mac or just put it on any computer?

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic