Yes. It is totally legal to emulate video games and to operate emulators. However, the act of actually uploading individual game ROMs is illegal.