I believe you can, there are some plastic outlet boxes that are listed for metal studs. I believe the code section you would be looking for is 110-3 (b). Here in NJ we are still using the '99 code. But I am sure it hasn't change. This is the section that says you have to install the product as per the manufactures instruction.