Is it possible, with Datasmith runtime, to wait for import to finish before running the rest of code?

One way to do it is to check if the Datasmith Destination is receiving or building.
There is no event yet.

Here the “Anchor” is your datasmith destination variable. And the event is called on tick to monitor its change of status.

E.g.