This will depend on your jurisdiction; some areas will have stipulations about how from the property line you can build a fence. It’s a good idea to check with your Homeowners’ Association on this matter.