My personal experience is yes, pushing a bigger gear can build strength.
Slide back in the saddle and drop your heels so you do not feel any discomfort in the area of your kneecaps.
Build up to it gradually.
Riding into a headwind is a good way to do this, it is easy to shift when you've had enough rather than having the terrain dictate.