You can install the CD on your new computer and can run the program updater after installing to get the latest updates.
IMPORTANT: You'll also need to move the *.tax2018 data file from the friend's computer to your new computer, and hang on to it. You may wish to back it up to some external device/media for safekeeping, too. Guard it carefully against hacking or theft, since it contains all your personal into and possibly banking info, etc.
If you want to open the data file, and if your *.tax2018 data file has a state return in it, you'll need to download your state program into your 2018 software before opening the data file, or might show an error message. To do that, you may have to start a new fake return just long enough to download the state program.
If you haven't already installed your CD program onto your new computer, here are recommended installation steps:
You must install using Administrator privilege.
First manually disconnect your computer from the Internet so you can safely temporarily disable your antivirus and firewall software programs.
Close any other open programs.
If installing from a downloaded installation file, then double-click the file to start the install process, and skip the CD steps.
If installing from a CD, insert the CD and the installation should launch. If it doesn't start installing automatically, then here's how to launch it:
Hold down the Windows+R keys to open the Run window.
Click Browse, and then navigate to the TurboTax CD on your CD/DVD/RW drive (usually Drive D).
Double-click the setup.exe file.
Click OK to launch the installer.
After installing, be sure to re-enable your antivirus and firewall programs before connecting your computer back up to the Internet.
Reboot (restart) your computer.
Launch TurboTax and run the program updater.