Only if an agreement can be reached with the landowner. The legislation only sets obligations for owners of land or water areas that are located in the border zone.
(Border Guard Act (15.7.2005/578) section 50 (8.7.2022/698) Barriers: The owner or holder of land or water areas within the border zone is obliged to permit the construction of a fence or other type of barrier, at the state’s expense, if this is necessary for the maintenance of border management.)