i keep leopard geckos and ball pythons in the same rack. i've actually got a boa at the bottom so i have 3 species in one rack now.

As long as the heating requirements are the same (or within a few degrees) you can do it.

Its not about the rack, its about the temperature gradient and humidity needs of the animals