Yes. If the asset is not traded, then there is no new bar. Thus, when you got a new bar at 6:30, at least one price quote must have been received in the previous bar that ended at 6:30. That's the close price of that bar. It has nothing to do with market activity after 6:30 - that has no effect on the bar that just ended, only on the next bar.