Additionally, you do not sppecify time and location, both of which are crucial.
Can.
Another common problem with "can" questions is that they may ask about what we could call an "innate capability" — or about a non-zero possibility of a future event. The two are distinct questions, even though they are connected: Because the term "possible" implies that the world is not pre-determined but includes random events of different probabilities, every "possible" event has a finite chance to happen during some finite time interval in the future (and a probability of 1 if we say "ever"!) And if somebody answers "yes" to the question "can you do X?" they may well be asked to prove it, by performing the act.
One problem with the idea that "can" asks about a non-zero probability of something actually happening in the future is that the future may be very different from the present, so that different things become possible.
Fly.
"Fly" generally only means that something is airborne. Among the possible ways to be airborne is flying by actuating wings, like a bird, or staying suspended on a ballistic trajectory, like a missile, or being suspended fromby the wind, like a kite. There is probably also a measure of time involved: "Jumping" because "jumping" is not "flying": We are in the air, but only briefly, and then we fall down. Competitions involving "flying" are very careful to define parameters like altitude and duration.
Time.
As mentioned, predictions are difficult, especially if... you know.
Location.
The question probably takes it for granted that the pig is on level ground on Earth around sea level, because in different environments like the ISS pigs could easily fly.
Discussion.
If we understand the question "naively", imagining a sus domestica attempting to perform powered flight on Earth on a calm day at sea level on a level surface, the possibility is clearly zero: It is impossible. But this is not the only way to understand this sentence. In order to get proper answers you need a clear definition of what you are asking. Part of being specific is whether you are asking about a future possibility (which is implied when we talk about probabilities) and whether you include the past. The past is only imperfectly known; the future is essentially unknown.