Yes, failing to comply with local building codes can result in fines, penalties, and even eviction orders if the property is deemed unsafe for tenants.