I'd have to say that if said lamp holder/ pullchain/ receptacle is UL listed there is no NEC violation.

Now I'll step aside and let the really knowledgable people take a crack at it.