Yes, you can arrive at terminal T1 and leave via terminal T2, your Aerobus ticket does not take these changes into account. Just make sure you take the right bus, in this case the A2 bus from Catalonia Square.