Yes. If you need a 2-conductor cord, just clip the ground (green) wire and leave it unused.  Use the hot (black) and neutral (white) wires.