Can XRD determine inorganic material composition?

Maybe this is not related to Materials Project. I want to know whether the XRD can be used to determine the identification of a crystalline material and provide the unit cell parameters. If we want to know the material composition, elemental analysis (e.g., EDS or XRF) should be used, right?