Even if location services are turned off the person with the code can still find the device if Find My iPhone is turned on and they activate lost mode.
The only sure fire way to stop device location is to power it off. Even then, its last known location may be reported.