it depends on the type of infection/zombie, but in general yes
Discussion
Why?
well if it is transmitted by proximity/air it would be a bad idea to have them in a close space
also, if it's one of those super strong/fast zombies, you can't risk them fully transforming