Yes—there are legitimate ways to play older games for free. Many titles considered abandonware, or games whose copyright has been released into the public domain, can be enjoyed legally through emulators. A number of games on the MAME32 emulator fall into this category.
Keep in mind that downloading ROMs of games still under copyright is generally illegal, even for discontinued systems, so it's best to stick to titles that are freely distributed by their creators.