Yes, especially if you choose durable wood like cedar or pressure-treated wood and maintain it regularly. Adding a rot board can also help protect the fence.