I think it is not advisable before, as it could interfere with the (albeit small) anesthesia that they administer you. But the doctor will know better.
As for after, I think it has no influence at all on your new hair even though CBD may potentially case longer bleeding.