Lime can be used to increase Ph. There are a few forms of lime, which is a somewhat general catchall for calcium carbonate and similar compounds. Quicklime, which is sometimes used, is very powerful and can burn the sh!t out of your plants. It activates much quicker than bone meal, egg shells, oyster shells, etc. The main problem with using lime is that the Ph usually keeps rising as the lime breaks down, and trying to adjust Ph in a container full of growing medium that has gone astray.
It is MUCH better to have everything right in the first place if at all possible. If you make a mistake, the few dollars it will cost to replace the soil with something good will quickly be offset by increased and better yields. Growing is like laying bricks... you start with one piece and build from there. Pretty soon it will be 2nd nature and so easy you wonder how you struggled!