Yes. Once in a while I've had Microsoft's activation refuse to accept the key (generally after multiple reformats), but a 5-10 minute automated phone call takes care of it for you. It's pretty painless.
IIRC, as long as you keep the same OEM key with the same hardware, you're legal. It shouldn't matter if you only upgrade 1-2 pieces, too.