Yes, but you must observe the notice periods agreed in the employment contract or those stipulated in the cantonal NAV for domestic workers. If possible, give your notice beforehand so that the employer can prepare for it. It is best to give notice in writing and keep a copy of the notice for your records.
If you were given keys or other materials at the beginning of the cleaning job, return them at the end of the work. Ask your employer for a reference - it must contain information about the duration and nature of the employment relationship. All information in the reference must be true, correct and complete.