It is necessary but not sufficient. Banks also want formation documents, proof of address, identification for the beneficial owners, and sometimes a US presence.
Requirements vary by bank, and policies for foreign-owned companies differ widely. The EIN is the first step rather than the whole answer.
We handle this for founders running US companies.
Full guide
How to Get an EIN for Your Startup?