Yes, sometimes doctors prescribe amoxicillin for treating infected cysts. However, it is best to consult your doctor before using it, as a dermatology prescription can vary from patient to patient.