Read your lease. Some leases will have information regarding changing locks and rules around it. I would also reach out to your landlord or property manager to ask. If they don’t plan to then ask if you can and you will buy the new lock and provide them with a company of a key in case they need to enter for an emergency. In my experience this has worked.