I think that's more the writing than the actress. The Margaery of the TV series is shown scheming a lot more than in the book - where there were no POV characters near her, so no-one would've seen it. I did always assume it was a genetically inherited trait, though.