check if my led is on

yes you are right a freewheeling diode is necessary.