Thats what I do, I am getting better at putting some effort into the longer gears approaching a short incline and dropping down as needed, though if its a lengthy climb I still just settle into a a low gear and just work my way up steadily. Though i am finding I am using higher gears. I just did to night a section that is 5.5m long with a steady climb of 200ft or so, though there are one or two sharper climbs or they were when I started they dont seem so now, I was 1mph faster over this than I was a month ago, and also instead of the 26/34 which i needed when I started in June I find I am taking most of the steeper sections no lower than 38/24-28 and thats as I am usually getting to the top.
One section I crawled up at under 7mph when I started, I tried to note the speed today not less than 10 i think (according to strava 11-12 for most of it), like i said its short 1/4 of a mile and only 3-4% in places, but it used to kill me because its the 2nd of 2 though the first is not so steep only 2.5% in places its 3/4 of mile again before i was down at 7mph today 11+ apart from a junction where there was an unusual amount of cars for the time.