Yes, a gap can matter. The employment-based route requires that for a continuous 4 years you simultaneously hold the qualifying employer, position, and residence period; an interruption in any of these during that window breaks the continuity.
Nationwide (all cities)
A gap can matter
A gap between jobs can affect your permanent residence application, because the employment-based route is built on continuity.
The continuity requirement
The National Immigration Administration states that applicants on the employment route must, at the time of application and for the 4 consecutive years before it, simultaneously satisfy the conditions relating to the employing unit, the position (title), and the residence period. An interruption in any of these conditions during that 4-year window means the 'continuous' requirement is not met.
What counts as an interruption
A gap between two residence permits, or a period with no qualifying employer or position, is exactly the kind of interruption that breaks this continuity. When you later apply for permanent residence, the reviewing office can ask you to explain any such gap.
What to do
So if you are planning to apply for permanent residence, minimise the gap between jobs: keep a qualifying employer and position, and keep your residence status valid without interruption, throughout the 4-year window you are relying on.