Yes, there is a generic version of Lipitor, which is known as atorvastatin. According to Drug Patent Watch [1], the patent for Lipitor expired in 2011, which allowed other pharmaceutical companies to produce and sell generic versions of the drug. Atorvastatin is approved by the FDA and is considered to be just as safe and effective as Lipitor [2]. In fact, a study published in the Harvard Health Blog [3] found that switching from Lipitor to atorvastatin resulted in similar cholesterol-lowering effects and no significant differences in side effects. Additionally, atorvastatin is often less expensive than Lipitor, making it a more affordable option for patients.
Sources:
[1] https://www.drugpatentwatch.com/p/tradename/LIPITOR
[2] https://www.everydayhealth.com/drugs/lipitor
[3] https://www.health.harvard.edu/blog/switching-to-generic-lipitor-201202064195