You can track someone on Google Maps as long as the person you want to track has opted into sharing their location.
You can stop Google from tracking your iPhone by disabling the "Location History" option in your account settings.