Yes, it could be because she is gravid, though in that aspect there is a good deal of individuality. My female boa didn't get aggressive until parturition.

Other reasons of unexplained aggression can be stress or pain so just keep an eye on her.

Ian