Heating vegetable oils often causes trans fats to be produced. And same for the hydrogenation process. (chemically bonding hydrogen atoms to the oil molecules, the process that is used to turn liquid vegetable oil into margarine).

In short use animal fats for frying and when the food will be heated. And save the vegetable oils for salads and other foods that don't need to be heated as part of their preparation.