The short answer, always, is it depends on the program.
To be sure the demands in a Gen surg residency are high, at not the least of that is due to the attitudes of the attendings on how training should be done.
If you're one of those people who have to go to the highest ranked, most prestigious program possible, there are probably going to be sacrifices above and beyond what is already expected in any residency. If you're simply looking to be well trained in an environment that is conducive for your well-being, those types of programs exist. If you're looking at the possibility of having kids while a resident, you're going to have to examine the programs for outward signs of that being acceptable (I don't know if surgery programs broadcast this like my peds programs did). You can always ask the residents questions like 'do any of you have kids?' (which sounds much more like innocent small talk than anything else) or 'is anyone pregnant?'. Simply hearing the residents talk about their families can be very revealing (as someone in the opposite situation as you, being male and very single, I was interested in finding the opposite type of group - where was I going to find the group that had the most fun).
Finally, as a second year, it's good that you're thinking about the possibilities, but don't forget you have third year to help you figure things out. Also, you may wish to consider some of the surgical sub-specialties that have the reputation of being more female friendly like ENT or Optho. I also think many women with interest in having surgical procedures in their practice choose OB/Gyn because it affords those opportunities.