You can build (and we often do) directly on the property line if neighbours are going in together on it. However, it is advised to consult with the local municipality or city office as there might be variations in specific regions.