I agree with what you are saying, but if you remember in Season 2, Hakeem had just escaped from that van after he was kidnapped, and yes, I agree that he was extremely irresponsible when he got her pregnant, but you also have to remember that he wasn't thinking clearly either, because he had just been kidnapped. And I definitely agree that Anika should have known better, and we also have to remember that Bella came along out of desperation for both of them.
If you look at episode six in Season 2, Anika was talking to her mother about having no one and she said that she wouldn't be fine, and Hakeem was waiting for her, and if Anika really thought about it, if she felt like she had no one and nothing, than it would have made more sense if she went home to her parents, but she wasn't thinking about that. After telling the family and a very surprised Hakeem that she was pregnant, she told them that she wanted to make amends, and in Season 3, she wanted Cookie to take care of Bella in case she had to go into the Witness Protection Program, and then she goes to the Dubois family and has deliberately handed Bella over to them, and when they have lunch, she cries profusely after her daughter has been in the care of the Dubois family, and she wanted people to believe that she had no idea where her daughter was, when she knew all along? And Hakeem ended up following her, he knew she was being stupid and she cannot be trusted, when this plan has been manipulated by her all along.