No, they acquired Pharmasset, the company that made the cure, for $11.2B. That was a pretty low-risk move. It was already an obvious money maker.
"for all the RnD that went into doing that"
In the 18 months following Sovaldi’s approval, Medicare alone spent $8.2 billion on the drugs...that doesn't include private insurance payments. I imagine the acquisition was paid off quite quickly. Pricing after that was just how much profit they wanted to make.
See these for more detail:
https://www.finance.senate.gov/imo/media/doc/Wyden-Grassley%...
https://www.finance.senate.gov/ranking-members-news/wyden-gr...