Aside from the fact you are using a discount code you are not authorized to use, there could be an issue if there was damage to the car or an accident depending on what the coverage they had as part of the CDP.
Some companies are OK with using their discounts for personal rentals, some are not. I don't know of any company who extends the benefits to ex employees.