Changing company after h1b approval stage.

HI , i am currently working for Company A. i have got H1B sponsored by company B picked up in lottery and waiting for approval.

in case after approval can i transfer my H1B to A company which has its office in US


should i have to work with sponsor B for 6 months and then have to do transfer to A