Yes, increase winding count leads to more longer wire which increase it's resistance, but you can increase voltage in order to keep current the same and get higher magnetic field strength
Also note that magnetic filed strength depends on current I (Amperage) and winding density (N loops count per L distance):
\$H = \frac{NI}{L}\$
So, there are two way to increase magnetic field strength - increase current or/and increase winding density. You can increase winding density by increasing loops count with keeping the same coil length or by reduce coil length with keeping the same loops count.
Both ways has some limit because wire has some diameter and you're needs to decrease wire diameter in order to bypass size limit which is also leads to increase wire resistance.