Yes. In all cases, the card is built (building, Wonder) and then its effect is applied.