Yes, you can do both inserts with the same trigger and refer to the newly inserted id in the second insert. Just make sure the two inserts are in the correct order on the page and that the first insert doesn't redirect before the second one has a chance to run.