During my yearly fire inspection at the office, the fire marshall told me that you can pretty much do whatever you want as long as the end result gets plugged into a surge protector. YMMV though depending on jurisdiction. Also, keep in mind that just because you can, doesn't mean you should.