Yes, but that would be a waste of space as your files would grow fairly large very quickly.
If you can get your hands on the algorithm to generate those shapes, then that would be more efficient as you could extend parameters such as radius, length, resolutions, etc.. in the user interface of the script.
If that's not an option, then start a fresh session of XSI and perform the exact steps needed to create your shapes. When finished, open the script editor and drag n' drop the commands from the history editor to the command editor. Then drag and drop the code onto a toolbar to create your button.
Just remember to remove all your undo commands and other mistakes before making the button.