Don't know about code, but one fan's exhaust may end up backfeeding the other if both are not powered at the same time.