Not true at all.
The Whigs were more a collection of factions than a party. The only thing that united them was distaste for everything Andrew Jackson stood for. They were the anti-populists of the era. Among the things they believed in were high protective tariffs, a central bank and a strong, vigorous federal government. What held them together was the presence of Henry Clay, the Great Compromiser, who had kept the Union from dissolving in 1820 and 1850 with two compromises that permitted the North and South to live in the same country.
Clay's death from tuberculosis in 1852 at age 75 marked the real end of the Whig Party. It lingered on for most of the 1850s, desperately trying to have it both ways on slavery, which had become the great divisive moral issue of the day. The fractured Whigs were replaced by the Republicans, a true anti-slavery party.
Well, there ya go!
I substituted ‘Immigration’ for ‘Slavery.’ ;)
Like the Democratic party before the Civil War, the Whigs were a “bisectional” party that drew voters from both the North and South, explains Philip Wallach, a resident scholar at the American Enterprise Institute.
“Both parties therefore had an interest in keeping IMMIGRATION off the national agenda as much as possible,” says Wallach. “But in the case of the Whig party, it just couldn’t find any way of dealing with the IMMIGRATION issue that would satisfy both its Northern and Southern wings.”
https://www.history.com/news/whig-party-collapse