No. Mikaela Banes (Megan Fox) is never killed by Megatron—or anyone—in the live-action Transformers films.
She appears in Transformers (2007) and Revenge of the Fallen (2009), survives both, and is simply absent from Dark of the Moon (2011) due to the actress's departure. The character is not shown dying on screen or in canon tie-ins. You may be confusing her with another character or a fan-fiction scenario.