It will depend on the work start date mentioned in the COS (by your prospective employer while applying for COS). If it's after 2 months, then yes you can go back to your home country after your notice period. However, do note that you need to use the COS within 3 months after its approved & assigned.