If my boyfriend had testicular surgery as a child will he be able to have children?

Usually yes. Guys start out with 2 testicles, so if something happens to one of them, the other one alone makes enough hormones and sperm to have a family. So, the question is whether or not he has at least one good testicle. The answer is usually yes, even though nothing is 100% certain in life.