There are still ticket offices in Switzerland, though those at smaller stations have generally been closed over the last few years. Mostly, they are only used for complex purchases (e.g. travelcards, changes to bookings, international tickets), not for purchasing point-to-point tickets.