probably... all you need is something that is acidic to test if the rock is alkaline. If, when you pour it on the rock, it bubbles that is a reaction between the two sides of the pH scale and the rock is not safe.
If there is no reaction the rock is safe for your aquarium in that it will not raise the pH of your tank.