Good Lord no. They took the Hanoi fortress in three hours with just 200 men, at this point Vietnam was not in any shape to actually form a resistance, especially with France having such a strong base in the South.Did the French get driven out then, to only reinvade in the 1880s?
If the French do their occupation and pacification in the mid 1870s instead of the 1880s, there could be less of a chance of this spilling over into a war with China as it did in OTL. The Chinese were still suppressing rebellions in the southwest and northwest through 1877 and seeing off the Russian occupation of Ili that year. By the 1880s in OTL, those challenges were over.
It was an expedition led by an officer (Francis Garnier) who may or may not have acted of his own accord and got killed by pirates in the Mekong delta. After that, rather than pushing, the governor just negotiated quite a wide trade agreement with Vietnam over Tonkin.
It's more a lack of politic will and resources to actually push the pacification than capacity to do so. And China would have caused issues at some point anyway, Vietnam was a border kingdom and a tributary of China, it was quite a blow to get it into the French sphere of influence.
You also have to account for the fact that at the time, Vietnamese authority in the region was fairly minimal as it had been over-run by Black Flags, Chinese remnants of the Taiping war.
A campaign for Tonkin is very feasible at any time, but you need men on a fairly heavy rotation to account for diseases and you need support for the long supply chain, especially once you enter the pacification phase. Capacity was there, but political will wasn't