Would windows 8.1 recovery disc work on new pc

I have a windows 8.1 pro recovery disc from my asus laptop that came as windows 7 and I'm wondering if I were to get a pc without a operating system would the recovery disc install windows 8.1 on the PC as the operating system or wouldn't it work
Thanks in advance Ash