I'm currently in medical school with a 1yo daughter. It's definitely doable, but it makes life very complicated. Trying to keep school separate from family time is a struggle for me. But if it's what you want then I say go for it.
And it helps if you're a guy and not a girl. (Sorry but it's true)