NES emulators exist and are widely available, but the situation around them has grown less comfortable over time. Nintendo has been aggressive about ROM sites, largely because it sells its back catalogue through its own digital storefronts.
Emulators themselves are generally legal. Downloading games you do not own is not. If you have the original cartridges, dumping them yourself keeps you on solid ground.
A second-hand NES goes for a modest price on auction sites, and it works with the games you already own without any configuration at all. For many players that is the path of least resistance.