Practical answer - yes, but you’ll need to find out how on your own
Legal answer - no, you are pirating copyrighted software
Technical answer - buy old games from a hobby shop, buy specialist equipment to read them on your computer, and make your own copies. Perfectly legal. (ok for PS1 and PS2 you just need a DVD drive)
If you can’t find a problem, don’t create one tbh.