Thank you for posting in the Developer Forum. Just to clarify, are you asking if the host can re-join then be reassigned as the host after being force out of a meeting ?
That said, yes, it is okay if a host re-joins a meeting and a random user is assigned as a host. Please note, if the original host is a Licensed user, the meeting will continue to run for an unlimited time, even if the new host is a free or basic user. On the other hand, if the original host is a Free or Basic user, the meeting will be limited to the 40 minute duration, even if the new host is a Licensed user.
To learn more about passing host controls and leaving the meeting, please see our help documentation:
Passing host controls and leaving the meeting – Zoom Help Center.
Looking forward to your response.