Yes. A security deposit pays for damage to the property after you move out that is more than normal “wear and tear”. Make sure you get a receipt for the security deposit.