Remote access to esp32

i have a good connection with my android using bluetooth or WiFi. my question is, does app inventor have the ability to connect remotely to my esp32? In other words i want to connect when say 50 miles away to run the app on my esp32. no problem with bluetooth or wifi.