You can do that, some banks might require you to have an account with them, which as a foreigner might take some time to setup and will at the very least require your passport and perhaps a letter of recommendation from your bank in your home country.
Or you can open up an account, go through the verification process with a check cashing service, like for example:
http://epayservices.com/check-cashing.html
Good luck!