it is not pimple but folliculitis
it is due to infection in hair root of the hair
due to wax or threading ,hair root become open and increase chance of infection .
u need to take care during it .
keep aseptic precaution and use good brand material only .
u need to apply antibiotic cream after it to prevent it .
better to consult dermatologist