yes. a sty (hordeolum) is unrelated to acne and it can be treated surgically while you are on accutane.
i did a minor surgery for stye (eye) while on accutane. is it ok to do this type of surgery while on accutane? . accutane (isotretinoin)