Exhibit 23.1
Consent of PricewaterhouseCoopers LLP, Independent Registered Public Accounting Firm
We hereby consent to the incorporation by reference in this Registration Statement on Form S-8 of our report dated November 12, 2021 relating to the consolidated financial statements, financial statement schedule and effectiveness of internal control over financial reporting, which appears in Sanmina Corporation’s Annual Report on Form 10-K for the year ended October 2, 2021.
/s/ PricewaterhouseCoopers LLP
San Jose, California
May 4, 2022