While it is not mandatory, setting fence posts in concrete is generally recommended as it adds stability and strength to the fence. Concrete can help prevent leaning or shifting of the posts over time, increasing the overall durability of the fence.