Installing games from a disc isn't inherently bad for your computer, but storage space is the key factor to watch.
If your games take up too much hard drive space, it can cause problems by limiting your system's virtual memory options. Your PC needs some free space to run smoothly.
However, as long as you have sufficient free space on your operating system drive, there's nothing wrong with keeping games installed. Just keep an eye on your available storage and you'll be fine.