Have they touched the pus or the skin around the boil?

If not, then you are fine as my understanding is that the pus holds the bacteria which can be passed on.