Technically speaking, you will have to consider from centre of
earth to surface of moony. Thus, you can take the distance from
centre of earth to centre of moon minus radius of moon
However, the difference is extremely minute (100 times difference),
and the final answer would not have been much different.