yes, use 2 Data Assist insert behaviors, In the data assist insert behavior, you can set the name of a session to save the inserted ID.
In the first insert behavior, make note of the session that will save the inserted ID, and use that session in the second insert behavior as the value for the relational column.