It’s wood, so not really. Given that you’ve used material that was a fence, the likelihood is that it’s been made from cheap fast growing timber, which has a tendency to absorb moisture more than say a slow growth hardwood.
Take wooden boats for example, very simplistically even though they are painted and antifouled below the water line, the inherent properties of wood make sure that the planks expand when immersed and prevent the boat from sinking.
The trick to your gate issue will be to make small adjustments when it is in both states and ensure that when it is swollen there is a small gap of say 1/8″ between it and the closing post. This will obviously increase when the gate has dried out, possibly by as much as 1/2″ and if this gap is a concern for you, consider fixing a cover strip to the gate.
It’s a bit of a black art,