Yes, this installation meets the requirements of 210.63 and 210.70(A)(3). The pullchain w/ grounded receptacle is a quick and easy way to meet code. You're in, you're out, especially when that attic is HOT!!