If you exceed the drone’s range, it will start losing communication with its remote control. From that on, the drone will enter some failsafe mode and automatically return home. But note that not all drones have this feature, and make sure you buy a drone with a better distance to minimize the risk of losing it.