H1B COS stamping and H4 during same visit?

Can i get my H1 stamping COS from OPT and H4 for my wife during same visit to my home country? or Do i need to enter US with H1b stamping for my wife to apply for H4 dependent visa?

You both can get stamping at your home country at the same time and its recommended too.