No, porcupines are not part of the pig family.
While they share some superficial similarities, porcupines belong to the order Rodentia, which includes rats, mice, squirrels, and beavers. Pigs belong to the order Artiodactyla, which includes cows, deer, and hippos.
Despite visual resemblances, porcupines and pigs are quite different animals with distinct evolutionary paths.