Rebar can be used as a grounding rod if it has corrosion protection. You will find different answers to that on the web, but the truth is that the rebar electrode is most likely to corrode if driven into the ground. So, if it is to be used as a grounding rod, it should have corrosion protection; otherwise, it should not be used.