Yes, IG's location feature work if and only if the target individual has mentioned their location on the post, under the username. If not, the location feature won't yield the desired results.