Yes, she is pregnant. She will get really square in the middle, like she swallowed a box, when she is close to giving birth. It is normal for them to hide when they fill stressed. Is there another molly, male or female, in with her. The males never stop trying to breed, even when the female is pregnant. It can kill her with the stress. Add another female if you have only one. Or move the male to another tank.