That's the ideal situation assuming the sensors are able to detect the unsafe landing location. Since the sensors are not foolproof, it would be best to take off from a location where the ground is flat (if possible).If it hits a rth situation the drone will come back and then say unsuitable landing stop and give you options on screen.