You can do a plug, but the cut lines almost always show up.
You should always try to color repair with carpet dye first. We had our spots fixed by a carpet cleaner using Roper dyes. You can't tell where ther spots were. I have had plugs that show up. Your best bet is to have it dyed by someone who knows what they are doing.