Can a close nipple be used to attach something such as a rigid coupling or a condulet to a box (junction, panel, etc.)? If not, is it a grounding or listing problem?

Thanks.