It depends on which historical records this is based on or using for reference. Even materials written in the same period often have conflicting views, but generally they could marry but often lacked the ability to have children, unless they had them before entering the palace. Of course this is a work of fiction so it's really what ever the author wants.