I think she definitely did. In fact, there’s no way she didn’t consider it. However, we weren’t in Cersei’s head for the brief period of time that Sansa was considered a viable candidate for Maggy’s prophecy (by Blackwater, Cersei herself is already using phrases like “if you ever become Joffrey’s queen”.) Given how Cersei acts in terms of Sansa, how often she insults her and seems to hate her before Joffrey’s death, part of that was likely her projecting of the prophecy and her fears born of it.
Remember, Maggy’s prophecy was a revelation we the readers got post-Joffrey/Sansa’s engagement. Cersei’s first POV chapter, and she’s the only one who knew about the prophecy at that point, was AFFC.
That’s the joke though, isn’t it? Cersei considers all the candidates based on the people who were going to be Joffrey’s (and later Tommen of course) queen. She is spiteful to Sansa and then Margaery at least partially because she believes they are the ones- in turn making them enemies of hers (much like how believing Tyrion is the valonqar alienates him from her.)
All the while, the reader is given the perspective of an absurdly beautiful queen who won her crown herself and not through one of Cersei’s sons who’s out for the Iron Throne: Daenerys.
It’s dramatic irony in many respects. Cersei’s paranoia of the prophecy not only hurts her and her grip on power by resulting in some rash and unfortunate decisions, but also blinds her to looking outside of her thoughts. She’s so caught up in her fears of the prophecy that she fails to account for the two people who will bring her downfall- a younger, more beautiful queen in Daenerys (far outside Cersei’s Red Keep world) and valonqar in Jaime (who’s ironically dwarfed by her fear and hatred of Tyrion.)