Can you build a fence right on the property line?

Fences are governed locally and each has its own rules. You will have to check with the local town offices.