Yes, you can cancel the insurance at any time, for example, if you move out and the landlord has no more claims against you. You will need a written confirmation from the landlord that there are no claims.