Ordering construction of a structure on top of a structure being ordered to be reclaimed

Is it possible with Lua?

Like when you order to reclaim a T1 pgen and want to build a T2 on its place, but have to wait until it is reclaimed to order construction above it.