Yes indeed, that's exactly how it works. Note that the Swiss Pass will be renamed to Swiss Travel Pass in 2015. Please see the links for all details about the passes.
All you need to know about traveling by train, bus or car in Switzerland.
Hand picked Swiss hotels and other accommodations are right here.