Can another bank charge me for using its atm machine?
Yes. The owner of the ATM incurs a substantial cost for buying the machine, renting space to put it, keeping it working mechanically, hiring people to stuff it with money. You are not that bank’s customer, and they can charge you for using it to access the money you keep at your bank. Similarly your bank can also charge you for using someone else’s ATM machine.