While a colonoscopy primarily focuses on detecting polyps and signs of cancer, some doctors may choose to remove or treat haemorrhoids during the procedure if necessary. However, this is not a standard part of the procedure.