You and your wife have same blood group of b will it be a risk in pregnancy?

The risk is present only if she is rhesus negative and you are positive. It could lead to miscarriage of the second and consequent children if she is not given proper medication before the first delivery. Note that this applies for all blood groups, not only blood group B.