Yes, get to know someone before having children. But I'd argue that you should have children with someone that seems like they'll be a good parent even if the relationship is over. Its OK to talk about it upfront, too.
Also, a note about "getting snipped": In some countries (like the US), it is almost impossible for a childless female to get sterilized. "You'll change your mind" "you don't have children, so no" "Why don't we ask your spouse" (these last two happen to men as well). You don't have the right to be sterilized. Other places, you must wait until you are 25, but then everyone - male or female - can get sterilized so long as they can pay for it. So, good luck, poor people.