Moving countries with children

One of my concerns about starting a family would be visa stability. If my immigration pathway is convoluted, I’m worried about the effect of moving constantly on my children’s development.

Has anyone left the US after having children here? How have they adjusted with adjusting to a “new” society and culture?