Hi, it depends. In a way, it would be better to leave the company instead of working out of compulsion without interest. However, my suggestion is, why not communicate your disinterest to continue in the form of a resignation? At times, some employers or contractors will not insist on a proper notice considering the short service period and the cost factor involved for you during the notice period. It depends on your role and responsibilities within the company.
Considerations for Leaving Without Notice
Please note that the company or contractor will not consider you for rehire if you leave without informing them. You may need to forego your settlement, experience, and relieving certificate as well.