You cannot build anything on-top a moving brush, unless it actually rests on a stationary one.
In that case, it will just sit on the stationary brush.
If you build it on an overhang so that it bumps into the brush, it will jam the brush, causing the brush to turn around (doors) or the build-able to instantly die (trains).