In a vacuum they would stay together as long as there is no spin.
In an atmosphere it would depend on the shape and placement of each object. A non-aerodynamic front object or overlapping second object would find the air pressure forcing the two apart.
