Does earwax have to be taken out by doctor?

No. Ear wax or cerumen due to its pH (acidic) and make up, protects the external ear canal against bacteria and fungus. Most external ear infections are due to a disruption of this protective blanket. Ear wax only needs to be taken out when it occludes the ear canal and makes examination of the tympanic membrane difficult.
Leave it alone. Unless ear wax is obstructing hearing the best thing you can do is leave it alone. Wax is there for a reason. It moistens the skin, fights infections and prevents ear dryness. If your ear is completely occluded then having a doctor remove it makes sense. Over the counter methods unfortunately can make things worse by turning the occluding wax into a soft mush. Whatever you do do not use qtips.