As mentioned in the article, pharma is high-risk high-reward long term investment. Many companies tried and failed to produce an effective COVID vaccine (CureVac, Merck). Those companies invested R&D dollars well before the pandemic and further invested in recent trials. When a pharma company finds a winner, of course the margin will be great, the raw materials for most medicines are cheap relative to the value they bring. But the margin doesn't account for the 10+ years of R&D spend that put Moderna into the position it is in today.