VPN encryption prevents your private information from leaking, even when connected to a public WiFi hotspot. In addition, when using VPNs for internet banking, a VPN creates an encrypted connection between the bank's established server and the user. Thus, it becomes safer to transmit confidential details. So yes, given that you've got a quality VPN provider that's fully encrypted, you'll be safe while using a VPN for online banking.