Yes, you have to have a fence around an in-ground pool.
If the fence is a solid fence with no openings, it needs to be 48 inches high. If it is an open fence there are minimum and maximum heights depending on the exact type being used. Contact the Inspection office for more information.
All fences installed require a latch lock which needs to be installed at a certain height as well and certain type of spring latch needs to be used so that if someone leaves the pool area without closing the fence, it will close and lock. The gate needs to swing out.