Can barite scratch other rocks or minerals?

Yes. Barite is able to scratch any other mineral, or rock composed of minerals, with an equivalent or lower Mohs hardness rating (Barite: Mohs 3-3.5).