Obviously, you can extract the location from a photo. For this, you need to take the help of some online image metadata viewer website.
Just you need to upload your photo and then you will find a lot of information.
There are many websites but you can use verexif. From this website, you will find locations with GPS co-ordinates information about your photo and you can remove them also.