I won’t take the risk. But with strict supervision, it should be alright. You have to train your dog to be able to tolerate the existence of small animals. Give your dog treats when she does the right thing. Always have your pig reassured too, cos it might be very very frightened and run away.