Will it help strengthen my broken metatarsal if I have surgery on it?

MOTHER NATURE. If you've had surgery, just let nature take it's course, follow your doctor's advice, DON'T SMOKE, and you should be fine. You're young.
No. Fracture surgery is used to place the broken parts in the correct position for them to heal. It doesn't affect the strength of the bone itself.