When a new custom transaction ends does the original 'parent' continue?

We have created a custom transaction on part of our code. When the custom transaction ends, does the prior transaction continue operating?
For example:
Transaction transaction = ElasticApm.startTransaction();
where the type passed is "custom"