Is it correct merging two teams after one of them qualified for Worlds?

Say Team 1 qualified for the world championship and Team 2 didn’t qualify.
Can team 2 members (not qualified) be added to team1 at this final stage to attend the World Championship? Is this allowed?

Yes, this is allowed.