They would probably get along better if they are brought up together. If the dog you are considering is young, you have a better chance. Of course, it depends on the personality of the individual animal. In most instances, dogs and pigs can get along. However they should NEVER be left along together. They should be supervised as play can escalate into war and the pig is usually the loser.