Black spot

I went to my my doctor today for a black spot that just showed up on my scalp 3 days ago. It hasn’t been there. I’m going to a dermatologist and may have to have a biopsy. Has anyone had anything similar? I’m freaking out.