Can Microsoft be moved from one computer to another?

Hi!
I have two computers and Microsoft is thoroughly installed by CD's on one not the other.
I thought I could put the entire bulk file onto a disk or flash drive and transfer it to my other computer.
Is this possible?
Is this illegal, since I already bought the pack once?
Thank you.
