From the year you turn 18, you can pay into the pillar 3a. However, this is subject to the condition that you have an earned income subject to AHV contributions.
How old do you have to be to pay into the 3rd pillar?
3a Retirement Savings Foundation