Yes you can get food poisoning from pork pies if the pork pies have any bacteria in it.
As long as the pork pies have been kept frozen or refrigerated they should not cause any food poisoning.
When cooking a pork pie make sure to cook the pork pie all the way through which kills bacteria such as Salmonella.
The bacteria including Salmonella cannot survive when you cook the pork pies to a good hot temperature so you won't get sick or get food poisoning from the pork pies.
Pork pies that are not cooked all the way through can potentially cause food poisoning but a fully cooked pork pie should not.
Pork pies will last for around 3 to 4 days in the refrigerator before they go bad but you can keep the pork pies in the freezer for up to a year without any issues.
Make sure you refrigerate or freeze any pork pies that you're not eating within a few hours as bacteria can easily grow at a rapid rate on the pork pies at room temperature.