It'll depend on the type of lava rock (characteristics can vary even if they look the same) and the different conditions they were previously kept in (some might still have residual chemicals or minerals trapped inside them), so they may or may not affect your tank's water parameters.
The only way to test is to put them in a separate small container of water for 1-2 weeks and test the water parameters (ie. pH, GH, TDS etc) before and after, then compare and see if there are any noticeable changes.
Otherwise you could also just leave them in your tank and test the water conditions weekly to check if there are any changes, if the parameters are still stable over a few weeks, then it either means the rocks are mostly inert or whatever it releases your soil substrate is able to buffer it.
Bookmarks