A security deposit is not recommended to be used to cover unpaid rent, as it may be required to cover other dilapidations. However, if the tenancy agreement allows this it is possible. If you are in arrears, your landlord can apply to the court for an order for possession.