It's just a matter of ensuring your cable is of sufficient gauge.
Cable size calculator for current rating, voltage drop, loop impedance, earth cable and short circuit, based on Australia and New Zealand standard AS/NZS 3008.
www.jcalc.net
You want to avoid too much voltage drop. With 230 V AC wire doesn't need to be super thick but it will depend on how much current you expect to pump through it.
And importantly, if you ever expect to upgrade the electrical current that cable may need to carry in future then keep that in mind.
Burying cable is a PITA, so better to get it capable of meeting current and future needs. And while you are at it, lay a data cable as well in the same trench (it can be at 200 mm while the power line needs to be at 600 mm deep).
With my system I started with a smaller inverter and my 20 A connections and wire were ample. But eventually I doubled the size of my system and needed to upgrade to 32 A. Fortunately no buried cable for me, but still, new wire and power inlets and outlets.