Is ABO blood group system B is dominant to both A and O?

No.

A and B are co-dominant. they are both dominant to recessive O.

So you get four blood groups;

A, B , AB and O