In the novel, it was implied that Mo Shaoqian didn't like to use any contraceptives, so Tong Xue did all the protection out of her own volition. She chose to take birth control pills, but somehow in the end, she still got pregnant. As for Mo Shaoqian, I bet he didn't mind having a child with Tong Xue.