Yes, this is possible. How new to Visio? Are you comfortable editing shapesheet?
Basically, for two shapes you need two geometry sections. Then, add right click, action menu to facilitate toggling between the shapes. The action menu would be configured to show/hide the geometry sections.