A husband who was desperate to be a father was worried he may never have children after his cancer diagnosis.