Yes you can But you can cause yourself
a lot of problems You might have
difficulity in getting the bad bees ( with laying worker) to accept the
queen in the good hive, they might try to kill her.
First be sure it is a laying worker if it is try to find and kill her
wait a couple of days and combine them if you dont find her
your best bet is to combine them by shaking them. you can find
good directions on this forum for doing this.