One can have a party wall is it passes the planning dept.
Sore point for me. I had a replacement single story extension built at my old place, and I was told I could NOT have it on the boundary for various reasons: I seem to recall needing to maintain it being one. Then years later a neighbour put in plans to have theirs up to the boundary, which was passed. Sauce for the goose was not sauce for the gander !
Beware also. A sibling was left a house by a relative, and the relative had not complained when some of their back garden, just over the boundary was utilised by some temporary thing of their neighbours. (I don't recall the details.) A while after my sibling had become the owner, the house next door was sold to a builder who had the $£^%^"$^ cheek to extend their kitchen out onto my siblings property. They complained only to find the law didn't give a damn that there was an theft/intrusion. The dead relative's good neighbourliness not to cause a fuss (they were probably too unwell to bother) meant that the builder could now ignore the theft of my sibling's patio, and my sibling has to just lump it; and agree and pay for a new agreement to be set up stating that the neighbour can have her land and she can't do anything about it. It's clearly hers, the neighbours' kitchen extension overlaps the edge of her kitchen (the houses' party wall) markedly. So beware and do whatever protest you need to do ASAP before the authority scum sides with the bad guy.