Will we able to pay for the train or bus for marital airport at the Yokohama station with credit cards?

It is highly unlikely.

some train stations and bus terminals do accept credit cards in their machines, but there's no guarantee.

it is better to bring cash in Japanese yen just in case.