Yes. An approximation is: that the gap between the patch and the ground along the sides of the patch have zero electric field across them, this is an electric wall; and the gaps at the ends have zero magnetic field along them, a magnetic wall. The walls short out the respective fields, but as those fields there are zero/small they have no/little effect. It makes the calculations simple, if not quite accurate.