This is generally not a concern for most countries. Usually people move to a new country in the hope of finding work. Social programs just help get them into the workforce faster.
Sure, I suppose a sudden, large-scale influx could be a problem. But this usually just doesn't happen. And it would pay for itself many times over if the country would simply borrow the money for getting the new immigrants settled.