Legally, no since there's no requirement to test the labor market before sponsoring someone for H-1B classification. As noted above, however, this could impact the green card process.
After the 2008 financial crisis, and for 3 years, applications did not reach the quota. Requests for evidence were frequent, as each application was carefully reviewed. Once approved, the H1-B was granted.