Ok, I understand now. I wasnt sure if the resistor was enough to stop the voltage going to Gnd and damaging something.