There are many forms of vitamin A in plant sources like sweet potato, carrots, squash and pumpkin (notice they are all orange color). Forms of vitamin A are found in animal sources such as dairy products, fish, and liver (notice these are all fatty parts of the animal). The best way to get vitamin A is from a healthy diet. The roll vitamin A plays in preventing cancer is not as well researched as its partner vitamin D. In fact vitamin A and D work together to reduce cancer risk.
A big long term research study of 123,570 men and women published in October 2019 JAMA concluded that diets high in vitamin A were linked to a lower risk for squamous cell skin carcinoma. The reduction of risk was 17% when people with the highest intake of vitamin A were compared to those with the lower intake.