Yes. If you have very high or very low outliers in your data set, it is generally preferred to use the median - the mid-point when all data points are arranged from least to greatest.
A good example for when to avoid the mean and prefer the median is salary. The mean is less good here as there are a few very high salaries which skew the distribution to the right. This drags the mean higher to the point where it is disproportionately affected by the few higher salaries. In this case, the median would only be slightly affected by the few high salaries and is a better representation of the whole of the data.
In general, if the distribution is not normal, the mean is less appropriate than the median.