System Restore can save you, but in my view it should be something of a last resort, since it can leave your system in a state where anything installed after the save point is still on your drive, but not properly installed.
In other words, it rolls back SOME of the changes made to your system but not all, which is not a great place to be. For emergencies it may be useful but avoid it if you possibly can.