Yes, if you move into a property, you have the right to change the locks. Whether you need to give your landlord a set of new keys will depend on what your tenancy agreement sets out.
You can of course choose not to provide your landlord with copies, but this could be viewed as antagonistic and could potentially damage goodwill from your landlord.