Pimple problem

Patient: My dermatologist told me that I have this common pimple and she prescribed to apply erythromycin gel (sans- acne) and after 5 minutes I have to apply epiduo gel. Is this safe? What would be the side effects that I’ll be encountering. Do I need to cream to avoid burn?