Exactly. So in 2018 I worked only 4 months and I paid around 1K CHF every month so in total 4K CHF.
My Swiss friend is not taxed at source and also worked 4 months at the end of year now he will submit a tax return and declare income of around 28K CHF. After all deductions he will pay something like 700 CHF in tax for 2018.