Biopsies of areas other than the skin may be needed in some cases. For example, if melanoma has already been diagnosed on the skin, nearby lymph nodes may be biopsied to see if the cancer has spread to them. Rarely, biopsies may be needed to figure out what type of cancer someone has.