I am redoing a new bathroom. I have a metal electrical box that I want to replace (because it is an odd size from the 50s). The current one is simply screwed to a wood cross (2x4) running horizontally. Can I screw the new one into wood? I know I can but is it code compliant?