If you block someone's number on an iPhone, they cannot track your location. On Android, someone can still track you if you block their number, unless you also block them on the message app, phone app, and Google Maps location sharing.