Yes, you can do so,meeting certain conditions. One must go through the rent agreement carefully and see what clauses regarding premature termination or lock-in period are written. One can also have a civilised conversation with the landlord on why you have to move early. Serve the notice period or pay up for the same if one wishes to evacuate immediately.
Book a phone consultation with a top-rated lawyer on Lawfarm.