Oh ok, thanks for correcting that out for me. But it I believe it needs for the parent transaction to be confirmed before being confirmed itself, or do they both confirmed at the same time?
Both are possible.
As long as the first transaction is unconfirmed, the second transaction cannot be confirmed. So the second transaction must be confirmed in a same block or next blocks.
If the fee rate paid for the second transaction is much bigger than the fee rate paid for the first one, it would be very likely that both transactions are confirmed in a same block.
If the fee paid for the second transaction is that big, miners pick the first transaction, so they can be able to pick the the second one (in the same block) too. This is called CPFP (Child Pay For Parent).