Sure, no problem. The point of entry and point of departure do not need to be the same. It is all explained here. Points of sale are listed here.
Enjoy your trip!
All you need to know about traveling by train, bus or car in Switzerland.
Hand picked Swiss hotels and other accommodations are right here.