Hey Graham,
Yes, that will be fine. As far as I know the ESP32-Cam (linked at the bottom of this post) is only single-band 2.4GHz anyway and the antenna gain of 6dBi should work nicely:
One thing that is worth noting however is that you’ll need to desolder this low resistance resistor and then either resolder it or bridge the joints to the external antenna quite neatly which at SMD-scale can be extremely difficult to cleanly (which is quite important for RF) desolder and move around without the correct equipment as seen below:
If you have any other questions please let us know, all the best with the project!