Can shares be bought on one exchange and sold on another?

Can shares be bought on one exchange and sold on another?

The answer is yes, but this can only be done on the next day, which is referred to as T+1. Intraday positions must be closed on the same exchange where they were opened.