A very good question, and the answer is not clear. Some experts believe that pregnancy
increases the risk of melanoma
and advise women with a melanoma history to avoid pregnancy, or at least wait several years.
Others say the evidence to support that recommendation is not convincing. Until we have a definite answer i would be very cautious; if you get pregnant, have your skin examined frequently.