In general, barristers cannot act for clients they KNOW are guilty. Though it is pretty obvious that they might suspect their clients are guilty (indeed, someone thinks they are guilty, or can make some sort of a case that they are guilty, or there wouldn't have been charges and a trial).
But...