If convicted of an offence, a pilot can be punished by the Court - and only by the Court.
The punishments available do not include any orders in relaton to the pilot's licence.
The CAA cannot and should not take licensing action in order to punish the licence holder. (Punishment is for the court to decide.) However, the CAA may take licensing action (revocation, suspension etc) if the conduct of the pilot is such that he/she does not meet the criteria for holding such a licence.
The CAA does not normally take licensing action - for the good and sensible reason that the fact that a pilot has broken an aviation law/regulation does not of itself mean that he/she is unfit to hold a licence.
FL