if you don’t know how to butcher an animal properly it can be a gong show (or if you drink like my uncles - hey we walked through the gate, shot. we opened the pen, shot. we killed the pig - after 15 minutes of chasing it in circles in the pen, shot).
theoretically it could be ok if the guts have not spilled out, ie, the innards are still within the cavity and the cavity has not been punctured. if there is any gashes though, the carcass will be contaminated.
you would be better off hunting or getting the meat from someone who hunts.