Of course! When the game is connected to Facebook or Apple ID, it will back up your game progress online, allowing you to synchronize your game between devices. Everything in your game will synchronize, including gold and silver coins.
When your game is connected to Facebook (Android and iOS devices) or Apple ID (iOS devices only), connecting the game to the same account on another device will restore your progress.