Yes, anyone that is of age in the jurisdiction where they reside can buy stocks. Even if companies and stock exchanges are locally based, they are available to anyone online.
Just keep in mind that you have to find a broker that offers the stocks or the market you want to trade on. All the stock trading apps in Australia that we have listed above offer a range of international and domestic stocks.