Regulations for building on neighbour's properties changes according to local ordinances. I recommend checking with your city government.