2 wire light fixture with black and green wires
No - don't confuse old fixture colors with current wiring colors.

If your fixture only has 2 wires, then black to black, white to what's left.

Use a metal box and attach the ground to the box.