It depends. If the pieces of the immovable object can move, yeah it would break just like any object. But, if the pieces can't move, then the bonds between the atoms would break, but we would not she it because they would not go far apart from each other