yes because the median and range are not a function of the totality of the sample set, the median is just value that is halfway of the set. and the range are the difference of the highest and lowest value. as long as the lowest values, highest value and the halfway value are the same in each set the median and range will be equal no matter what are the other values of the set.