If you don’t want to share your location with anyone, you can turn it off. That, however, does not notify the person, but they will not access it. If you turn it back on, they are alerted that you are now sharing your location. It can also depend on the location-sharing app you are using.