well first of all yes you can get shocked. always asume all wires all hot. connect the green wire,thats your ground.Thats very important.The yellow wire,get a wire nut and cap it off. If your light is working good then its probably an abandon wire,or an extera wire pulled accidently. yellow in that application is a switchleg,but your light is working right? so its not that. the only other thing it could be is a wire for a 480/277 voltage system,you dont have that so cap it off and be done.
Ralph
March 2008