Copying games for distribution is illegal. Making a backup copy for your own use may be acceptable depending on local law and the game’s terms.