Technically true, but completely misrepresents the issue.
Discovering (100s of)compounds in a lab (which is what the public funds pay for) is the easy and much cheaper part.
Testing it in humans and modifying it for that purpose is hard, expensive, and time consuming. Pretending like these drug companies do nothing and just take all the benefit from public research is incorrect.