To the best of my knowledge, this is not true: the US was open from 1800 until Chinese exclusion in the 1870s and 1880s, and in the 1860s actually had laws to encourage even MORE immigration.
See here:
http://www.pewresearch.org/fact-tank/2015/09/30/how-u-s-immi...