You can do it with "post processing".
Create the new parent record so that the primary key's value is created.
Copy the value of this key to a variable.
Import the records into the child table.
The imported records generate a found set of imported records. Use Replace field contents with the calculation option and the variable containing the primary key to update the matching foreign key field in the child records.