No, it banned sale of foie gras entirely (it did not single out importation), and even so the ban, to the extent that it prohibited individual consumers from buying it for import from out-of-state vendors, was struck down by a federal trial court in 2020 as a violation of the dormant commerce clause, a decision this year upheld by the Ninth Circuit, so it's probably not a law you want to point to as an example of the state being free to regulate interstate commerce.
https://www.theguardian.com/us-news/2022/may/07/california-f...
> and IIRC are planning a law banning the import of foreign oil.
Even if it was true that someone in California was planning on trying to pass such a law, it would be an even more clear, bright-line dormant commerce clause violation than the foie gras law.