Many banks, whether online or traditional, belong to an ATM network (such as AllPoint or Money Pass) that lets you deposit money into your account even if it's not owned or operated by your bank. However, be aware of any fees you may incur by using any foreign ATMs.