Generally speaking, yes. However, your lease agreement may require a written notice of intent to vacate. If you don’t provide the notice under those circumstances, you may be subject to a penalty from the landlord.
It depends on your lease agreement. If you fail to provide written notice in compliance with the laws of your jurisdiction, your lease may auto-renew for the same period you originally contracted or turn into a periodic lease.
If your lease establishes specific requirements for a notice period before vacating a property, follow those requirements. Even if your lease doesn’t automatically renew, your landlord may require a notice to vacate 30 or 60 days in advance. Landlords typically like to have as much notice as possible so they have time to find a new tenant.
Once you deliver your notice, it constitutes a commitment to leave the property by the appointed date. The landlord does not have to allow you to stay in the property after that. But, you may be able to negotiate extra time past the notice date or even completely annul it if your landlord agrees to the new terms. This is generally easier to do the closer you change your mind to the delivery date.