Yes and no. Yes, Switzerland (and Norway) are not in the EU and don't want to offically join. However they have special trade deals with the EU, customs union, they have to implement EU law, they have to allow free movement of EU citizens to live and work there, they are in the Council of Europe and have to abide by the European Court of Human Rights, they're in Schengen. Switzerland and Norway are basically in EU in everything but name.