Yes. They retrieve your location regardless of whether you have Google maps open when using an Android phone with Google play services enabled.
If you are suggesting that Apple tracks user location at all times regardless of this setting, then that's a different topic that has no substance in this therad.