I can't chime in on code issues, but what is going inside the box and how is it getting there?

If it is a junction box and it is being used with solidly supported EMT or IMC, why not?

Larry C