Yes, the landord may sue for unpaid rent. While the landord could have taken it out of the security deposit, returning the deposit does not give up the landlord's right to the money or to sue if not paid. The landlord would sue for "breach of contract"--for violating the lease (which is a contract) obligation to pay rent.