Speaking as a medical school student in a long distance relationship, you can have meaningful relationships while in medical school, but it takes work and committment. There are student doctors in my class who have wives, and who have children. In fact the guy next to me on the anatomy table had a baby last week. Your ability to absorb material quickly buys you time. You'll find time is by far your most valuable resource as a medical school student, and really as a physician as well. That doesn't mean it doesn't exist, but you develop incredible time management and infomation filtering abilities to allow you to do what you need to do.
I'm also the son of a physician who had two marriages end in divorce. The first marriage began right before medical school and ended his third year of medical school. Physical seperation and jumping in to the relationship way too early led to that divorce. The second relationship / marriage lasted seventeen years. Did the time invested in his practice kill his relationship? I will note that his time was much more limited in residency than it was in his practice. While time was a complaint of his wife in his second marriage, she was more concerned with the image of infidelity. Doctors, for better or for worse, are highly sought after mates and are alluring by most standards. The result is Doctors have to be more disciplined in not only chosing fidelity, but also presenting an image of it to their spouses. The baby boomers and this generation don't put the same discipline into fidelity that generations past did, again for better or for worse. Nurses, patients, and collegues gossip. Spouses who can't spend as much time with their mate because that mate is at work for longer hours can have their mind wonder. That kind of goes back to mate selection. The physician I know is active in sports, aviation, travel, politics, farming, and his family. So you can have a life too =).
As for raising children, I personally wouldn't trade my father for anyone. Early on I saw less time with him, but now he has become my most trusted confident and best advisor. In medical school, I'm able to meeting with him for dinner once or twice a week. He's been able to provide me with opportunities that I wouldn't have had elsewhere ranging from foreign travel, to avoiding debt, to just being a regular dad. If I'm in a tribulation, he makes time for me, and his family.
So yes it's very possible to have a family.
I hope that is somewhat helpful.