Provided you have paid for access to the Windows operating system, it is perfectly legal to install the operating system onto your Raspberry Pi device.