Not so, any timber set into earth will rot at ground level, therefore protection needs to extend above that level, heat shrink wrap can be obtained to do this or just simply bitumen, but this is prone to damage when strimming etc:If you do use softwood beams I would give the ends that are going into the ground
several coats of Bitumen up to ground level , It will help stop rotting.